Making box member array of 4 seems the most straightforward way for me in this case
Like:
[code=thinbasic]
TYPE TXYZ
x AS DOUBLE
y AS DOUBLE
z AS DOUBLE
END TYPE
TYPE TTransform
pos AS TXYZ
END TYPE
TYPE TBoxStuff
box(4) AS TTransform
END TYPE
DIM shapes(4) as TBoxStuff
DIM n as long
%something = 1
For n as long = 1 to 4
shapes(1).box(n).pos.x = %something
NEXT
[/code]
I think dynamic variable name evaluation ( like the one for function calls ) is not implemented.
Petr
Bookmarks