03-07-2026, 03:46 PM
I tend to just do this the mostest of simplest of ways:
TYPE Foo_Type
X AS LONG
Y AS LONG
Z AS LONG
END TYPE
DIM Whatever AS Foo_Type
DIM Whatever.array(100) AS LONG
Now I can do stuff like:
Whatever.X = 100
Whatever.Y = 100
Whatever.Z = 100
FOR i = 0 to 100
Whatever.array(i) = i
NEXT
See? I still has an array and it's easily associated with my whatever.
All I has to do when saving to disk or whatnot is remember to:
PUT #1, ,whatever
PUT #1, ,whatever.array()
TYPE Foo_Type
X AS LONG
Y AS LONG
Z AS LONG
END TYPE
DIM Whatever AS Foo_Type
DIM Whatever.array(100) AS LONG
Now I can do stuff like:
Whatever.X = 100
Whatever.Y = 100
Whatever.Z = 100
FOR i = 0 to 100
Whatever.array(i) = i
NEXT
See? I still has an array and it's easily associated with my whatever.

All I has to do when saving to disk or whatnot is remember to:
PUT #1, ,whatever
PUT #1, ,whatever.array()


