Addressing another type within same type

Blitz3D Forums/Blitz3D Programming/Addressing another type within same type

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.

The what-what?
You can have more than one variable of the type defined. Or am I not understanding you right?

Example:
SeedRnd 143

Type player
	Field name$
End Type

players.player = New player
players\name = "Luke"
players.player = New player
players\name = "Joe"
players.player = New player
players\name = "William"
players.player = New player
players\name = "Jack"
players.player = New player
players\name = "Averell"

For players.player = Each player
	For otherplayers.player = Each player
		If Rand(1, 4) = 1 Then
			Exit
		End If
	Next
	Print players\name + " vs " + otherplayers\name
Next

While Not KeyDown(1)
Wend