Returns the integer class ID assigned to the class this object is based on.
Function ObjectClass Returns Integer
Call: | Get ObjectClass to IntegerVariable |
Returns the integer class ID assigned to the class this object is based on.
This is similar to the private Class function, except Get Class may not return the actual class the object is based on. If the object has properties or methods defined, it is "cloned" and that ID is returned, which is pretty useless.
ObjectClass returns the ID of the class that object is based on (i.e., the class name in your code), which makes it meaningful. ObjectClass returns the class ID you would expect.
Integer iClassId Get ObjectClass of oApplication to iClassId If (iClassId=RefClass(cApplication)) .. // this will reliably be trueSee Also
Name | Object_Id | Object_Label | IsObjectOfClass | ClassSuperClass | IsClassOfClass