Is type not extended...

BlitzMax Forums/BlitzMax Programming/Is type not extended...

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.

CLASS_FOO=1
CLASS_MOO=2

Type foo

field class:Int

Method New()
class=CLASS_FOO
EndMethod

EndType


Type moo extends foo

field class:Int

Method New()
class=CLASS_MOO
EndMethod

EndType


For foo=eachin something:TList
Select foo.class
Case CLASS_FOO

Case CLASS_MOO

EndSelect