arrays in blitzmax

BlitzMax Forums/BlitzMax Beginners Area/arrays in blitzmax

If you want to extend an array, keeping the contents of it, you can do it this way:

Local MyArray:Int[20, 50]

MyArray = MyArray[.. 21, .. 51]


This way, the "slice" operator (..) extends the array to have one more field in each dimension, and the array is stored in the same variable that previously handled it.