Type Comparison Through Functions Possible?

BlitzMax Forums/BlitzMax Programming/Type Comparison Through Functions Possible?

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.

That was really helpful, thanks a bunch!!!
I didn't know I could do reflections with bmax, awesome. heres my simple functoin now :D

Method GetType:object(typeName:String)
  Local tid:TTypeId = TTypeId.ForName(typeName)
  Local oid:TTypeId 
  For local o:object = eachin List
    oid = TTypeId.ForObject(o)
    if oid = tid return o
  Next
End Method


Thanks again!