Multidimensional arrays, the simplest multi-dim arrays are.
a 5x5 grid
Code:
0 1 2 3 4 5
a 3 s 5 y h d
b e 4 5 6 7 9
c 3 e w 8 9 0
d 2 e e 4 5 6
e 2 3 1 9 9 3
f 3 4 d 7 q s
Take the values 3,C and you get 8 this is a 2 dimensional array, and the most common used.
You can represent this type of an array two ways inside of KiXtart.
Code:
;example 1
dim $array[5,5]
? $array[2,3]
or
Code:
;example 2
DIM $array[5]
for $i = 0 to ubound($array)
$array[$i] = $array
next
? $array[2][3]
both ways have their advantages / disadvantages.
The major disadvantage of example one, is that kix can only redim the last multi-dim value. But in example 2 you do not have that limitation.
Example 2 on the other hand take a good deal bit more code to build the array, but i feel it is a good trade off for a more flexible setup.