How to init multidimensions arrays?
BlitzMax Forums/BlitzMax Beginners Area/How to init multidimensions arrays?
| ||
BM able to declare and init the arrays in single line, as:Local a[] = [1,2,3] But how to declare and init multidimensions arrays? I try this, but unsuccessfully. Local a[,]=[[1,1][2,2]] Local a[,]=[[1,1],[2,2]] Local a[,]=[1,1][2,2] Local a[,]=[1,1],[2,2] |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=46944 |
| ||
Tnx Perturbatio, for trying to help, but this is not what I've ask. I want to know how to initialize multidimensional array like as simple arrays (see first sample). Or this impossible? |
| ||
Tnx Perturbatio, for trying to help, but this is not what I've ask. I want to know how to initialize multidimensional array like as simple arrays (see first sample). Or this impossible? I would think that was obvious from the posts in that thread... anyways, try arrays of arrays in stead. Local a[][] = [[1,1],[2,2]] |
| ||
TY |
| ||
Umm... sorry posted a link to the wrong thing, I was looking at many threads regarding multi-dimensional arrays, obviously I copied the wrong one. |