Thanks Koriolis, I didn't realize it had more data-type-ish properties (like being able to pass it into a function, ala "f(array)").
Pity you can't return it from a function, though.
Bluewolf, see if something like this works for you too.
Pity you can't return it from a function, though.
Bluewolf, see if something like this works for you too.
Function f(t[5]) For i = 0 To 5 Print t[i] Next End Function Type System Field x% Field ParticleArray[5] End Type s.System = New System s\ParticleArray[0] = 0 s\ParticleArray[1] = 1 s\ParticleArray[2] = 2 s\ParticleArray[3] = 3 s\ParticleArray[4] = 4 s\ParticleArray[5] = 5 f(s\ParticleArray)