dynamic multi-dim arrays
BlitzMax Forums/BlitzMax Programming/dynamic multi-dim arrays
| ||
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? |
| ||
data[]=data[4,4,5] If I remember correctly. |
| ||
has to be local data[,,] sets an empty multidim array then just set it equal to whatever you want. |
| ||
an alternative, if you want to preserve the data in the array is to use a jagged array |