Finding oldest instance of an entity?

Blitz3D Forums/Blitz3D Programming/Finding oldest instance of an entity?

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.

Ok, I am pretty sure that the first command will always give you the oldest one. Look at the following modification of my program.
howmany=0
Type whatever
	Field number
End Type

While Not KeyDown(1)
	If MouseHit(1)
		w.whatever=New whatever
		w\number=howmany
		howmany=howmany+1
		Print "new whatever created w/ num"+w\number
	EndIf
	If MouseHit(2)
		For w.whatever=Each whatever
			Print w\number
		Next
	EndIf
	If MouseHit(3)
		w.whatever=First whatever
		Print w\number
		Delete w
	EndIf
	For w.whatever=Each whatever
		w\number=w\number+1
		w\number=w\number-1
	Next
	Delay 1
Wend