ObjectClass - cObject
Returns the integer class ID assigned to the class this object is based on
Type: Function
Return Data Type: Integer
Syntax
Function ObjectClass Returns Integer
Call Example
Get ObjectClass to IntegerVariable
Description
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 true
See Also
Name | Object_Id | Object_Label | IsObjectOfClass | ClassSuperClass | IsClassOfClass
Return Value
Returns the integer class ID assigned to the class this object is based on.