how to get first type in a list

BlitzMax Forums/BlitzMax Beginners Area/how to get first type in a list

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.

Global list:TList = New TList

list.addlast "First"
list.addlast "Second"
list.addlast "Third"


Local first_object$ = String(list.First() )

Print "First item: "+first_object

Edit: tooooo...late!