Possible to preset 2DArrays
BlitzMax Forums/BlitzMax Programming/Possible to preset 2DArrays
| ||
It is possible to create and set an array like this:Local SomeArray$["test1","test2","test3"] But is there a way to do this with a 2D,3D array? Local SomeArray$["test1","test2","test3"]["2ndTest","3rdTest","4thTest"] or something which wuold create and set and array. or Local SomeArray[1,2,1,2,1]... [2,1,1,1,1]... [1,3,3,1,3]... [1,2,1,1,1]... [1,3,3,1,1] This would be very good for quick maps and stuff, is it possible? |
| ||
Local myArray$[][]=[["test1","test2"],["test3","test4"]] Print myArray[1][1] |