Generic Object

BlitzMax Forums/BlitzMax Programming/Generic Object

greetings Drey :) unfortunately BMAX is not quite as flexible as you are desiring. in this situation, before you can use a property on a type you must cast it to that type. in order to do what you are trying you must do something like:
If IntType(Obj.Anytype) Then IntType(Obj.Anytype).Vari = 2
If FloatType(Obj.Anytype) Then FloatType(Obj.Anytype).Vari=2

hope that helps...