'Demo Array 2 dimensions
indexbase 0
sys Bloc[12] 'array [3,4] =12 elements
sys z, a, b
Bloc[0] = 10 '[0,0] =10
Bloc[1] = 11 '[0,1] =11
Bloc[2] = 22 '[0,2] =22
Bloc[3] = 33 '[0,3] =33
Bloc[4] = 44 '[1,0] =44
Bloc[5] = 55 '[1,1] =55
Bloc[6] = 66 '[1,2] =66
Bloc[7] = 77 '[1,3] =77
Bloc[8] = 88 '[2,0] =88
Bloc[9] = 99 '[2,1] =99
Bloc[10] = 92 '[2,2] =92
Bloc[11] = 94 '[2,3] =94
a=2 : b=1
z = a*4+b
print Bloc[z] " hooray!"
Function Array2D(sys *array, a, b, d2) as sys 'd2 = 2st dimension
Return array[a*d2+b]
End Function
print Array2D(&Bloc, 1, 3, 4)