Objects referring to objects

BlitzMax Forums/BlitzMax Programming/Objects referring to objects

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.

Yes, exactly how you suggest so I'm not sure what problem you got while tinkering.
Type thost
	 Field name:String
End Type
Type tplayer
	 Field host:THost
End Type
my:tplayer = New tplayer
my.host = New thost
my.host.name = "blahblahblah"
Print my.host.name