Global SwitchList:TList Type TSwitch Field name:String Function Create:Tswitch(this_ones_name:String) temp:TSwitch = New TSwitch temp.name = this_ones_name If SwitchList = Null SwitchList = CreateList() Switchlist.AddLast temp EndFunction Method New() X = 300 Y = 400 EndMethod End Type tswitch.create("mary") tswitch.create("John") For p:Tswitch = EachIn switchlist Print p.name Next
Create Object with name
BlitzMax Forums/BlitzMax Beginners Area/Create Object with nameThe 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.