3d arrays are not supported at the moment but you can do a simple trick to get around this or you could change your data type to a UDT which is supported.
%Index = 5
Type tXYZ
X As Single
Y As Single
Z As Single
End Type
Dim A(%Index,%Index,%Index) As Single
Dim B(%Index*%Index*%Index) As Single At VarPtr(A(1,1,1)) ' this overlays array B on top of A
Dim C(%Index*%Index*%Index) As tXYZ
' The following will cause thinDebug to crash if you inspect the udt contents.
'
'Dim C(%Index*%Index*%Index) As tXYZ At VarPtr(A(1,1,1))
A(1,1,1) = 1
A(1,2,1) = 1
A(1,1,3) = 1
B( 2) = 2
B( 7) = 7
B(28) = 28
C( 3).X = 3
C( 8).Y = 8
C(29).Z = 29
Bookmarks