Tobject... finding the type 'inside'?

BlitzMax Forums/BlitzMax Beginners Area/Tobject... finding the type 'inside'?

Ian Thompson(Posted 2008) [#1]
Is there a way of evaluating what Type TObject is storing?

PCode...
If TObject = MyType1 do this
  blah
else if TObject = MyType2 do this
  ... 



REDi(Posted 2008) [#2]
You can use type casting to find out what type an object contains ...
If MyType1(object)
  blah
else if MyType2(object)
  ... 



Ian Thompson(Posted 2008) [#3]
Ah, I see, many thanks REDi :)