Bug. (?) Command First doesn't return First type.

Blitz3D Forums/Blitz3D Programming/Bug. (?) Command First doesn't return First type.

Chainging it to e.test still produces the error.

Specifically here is the code, is that what you meant?

Type test
	Field omg
End Type

t.test = New test
t\omg = 1
t.test= New test
t\omg = 2
t.test = New test
t\omg = 3
t.test = New test
t\omg = 4
t.test = New test
t\omg = 5

t.test = First test
PrintOMG(t.test)
t.test = First test
PrintOMG(t.test)
t.test = First test
PrintOMG(t.test)
t.test = First test
PrintOMG(t.test)
t.test = First test
PrintOMG(t.test)
t.test = First test
PrintOMG(t.test)

WaitKey

Function PrintOMG(e.test)

n=1
For e.test = Each test
	If n=1 Then Print "First omg = " + Str(e\omg)
	n=n+1
Next

End Function




Oh and:
This also works, so it must be something to do with your for next loop...


Its not MY for next loops, its Blitz3Ds actually. And everyone will have the same problem i suppose. Probably just a small coding error while blitz was being made, its easy to fix.