Types within types

Blitz3D Forums/Blitz3D Beginners Area/Types within types

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, that's it, thanks!

Working version:

Type tree 

	Field tree_type$ 

End Type 

Type apple

	Field t.tree 
	Field apple_size 

End Type 

t.tree=New tree 
t\tree_type$="big tree" 
a.apple=New apple 
a\t=t.tree ; apple belongs to tree 

; Print information about the tree the apple is attached to 

Print a\t\tree_type$ ; works

WaitKey()