Modifying and array

BlitzMax Forums/BlitzMax Beginners Area/Modifying and array

DirtBikeDude(Posted 2006) [#1]
I would like to insert elements at the end of one dimension.
For example,
Global Array:String[][]
Array = Array[..3]
Array[0] 'insert new element

What is the easiest way to accomplish this?


GfK(Posted 2006) [#2]
Better to use types/tLists.

You can then use tList.AddLast to add items, and ValueAtIndex to retrieve items. Same as an array, only more flexible. Won't simulate multidimensional arrays, though.