dynamic multi-dim arrays

BlitzMax Forums/BlitzMax Programming/dynamic multi-dim arrays

PantsOn(Posted 2008) [#1]
Hi

How do I set up a dynamic multi dimensional array..
ie data:int[3,4,5], now needs to become data:int[4,4,5] on the fly?


JazzieB(Posted 2008) [#2]
data[]=data[4,4,5]

If I remember correctly.


Schragnasher(Posted 2008) [#3]
has to be
local data[,,] sets an empty multidim array then just set it equal to whatever you want.


Perturbatio(Posted 2008) [#4]
an alternative, if you want to preserve the data in the array is to use a jagged array