Returning the Complete Array of types

Blitz3D Forums/Blitz3D Programming/Returning the Complete Array of types

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.

I've got the same problem and can't see what i have done wrong?

Type level
	Field id
End Type

Dim background.level(10)

For i=1 To 10
	For j=1 To 5
		background(i)=New level
		background(i)\id=Rand(100)
	Next
Next

For i=1 To 10
	For l.level=Each level
		Print i+" : "+background(i).l\id
	Next
Next

WaitKey

End


I keep getting "expecting next" errors. I get the same with Darkhearts version when I change 's=each cars' to 's.cars=each cars'... so what did you change DarkHeart?