How to init multidimensions arrays?

BlitzMax Forums/BlitzMax Beginners Area/How to init multidimensions arrays?

Vlad(Posted 2007) [#1]
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]



Perturbatio(Posted 2007) [#2]
http://www.blitzbasic.com/Community/posts.php?topic=46944


Vlad(Posted 2007) [#3]
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?


grable(Posted 2007) [#4]
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]]



Vlad(Posted 2007) [#5]
TY


Perturbatio(Posted 2007) [#6]
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.