another example is to use types like this:
edited: some stuped syntax errors I made corrected. I am surpriced the compiler did not catch them when I ran it.
Strict Type tinfo Field a% Field b% Field width% Field height% Field c% End Type Local info:tinfo = New tinfo Local map%[10,10] RestoreData Map_main_data ReadData info.a,info.b,info.width,info.height,info.c Print info.height 'this is the fifth element. RestoreData Map_main_layer1 For Local down% = 0 To info.height-1 For Local across% = 0 To info.width-1 ReadData map[across,down] ' stores data in the array. Next Next #map_main_data DefData 32,32,10,10,2 #map_main_layer1 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0 DefData 0,0,0,0,0,0,0,0,0,0
edited: some stuped syntax errors I made corrected. I am surpriced the compiler did not catch them when I ran it.