Array Handles?

Blitz3D Forums/Blitz3D Beginners Area/Array Handles?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.
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)