Hi All,
The code below fails.
I have a main type that needs to be able to operate on many different other types that share a common Pointer field. The problem is, using the data type "OBJECT" means Max can't find the pointer field of the passed object.
I *need* this to work- Why does it not, and how can it be made to?
The code below fails.
I have a main type that needs to be able to operate on many different other types that share a common Pointer field. The problem is, using the data type "OBJECT" means Max can't find the pointer field of the passed object.
I *need* this to work- Why does it not, and how can it be made to?
Rem I need the Method inside of type Test to be able to operate on any number of different other types. The accepted types all contain a Pointer field. Why does max spew up when I'm trying to do this? End Rem Type Test Field Pointer:Int Method Something(Thing:Object) DebugLog Thing.Pointer End Method End Type Type TestObject Field Pointer:int End Type Global OBj:TestObject=New TestObject OBj.pointer=1024 Global Thistest:test=New test DebugLog Thistest.Something(OBJ)