Typical "Identifier not found" with class variable

BlitzMax Forums/BlitzMax Beginners Area/Typical "Identifier not found" with class variable

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.

Does Blitz support custom types as class variables? I'm getting an error on the "lstTiles = New TList" line in the "Create" function: "Identifier "lstTiles" not found."

Not sure what is wrong. Similar functions with primitive class variables seem to work... not this. I've searched the forum and people have had similar problems, nothing that I can apply here, tho'.

Type Tileset

	Field lstTiles:TList

	Function Create ()
		lstTiles = New TList
		lstTiles = CreateList ()
	End Function
	
	Method addTile (t:Tile)
		lstTiles.AddLast(t)
	End Method

End Type