Local number:Int[,]
BlitzMax Forums/BlitzMax Beginners Area/Local number:Int[,]
| ||
Local number:Int[,] = [(0),(1)] No work. Help me. |
| ||
What do you want to do? a single dimension array with 2 elements: Local number:INT[]=[0,1] a 2-dimensional array with 12 (zero) elements: Local number:INT[,]= New INT [3,4] (thanks grable for correction) |
| ||
There is only array literals for 1D arrays sadly. And the code below isnt correct, i would say its a bug as it manages to create an invalid object. New [3,4]EDIT: Maybe this is what you meant Midimaster? Local a:Int[,] = New Int[3,4]Normally one can use New on object instances to create a new object of that type, but apparently not on array instances.. |
| ||
Ok, no problem.local numbers:int[][] = [[1,2,3], [1,2,3]] |
| ||
Blitzmax is an amazing language.. Never stop to surprise me |