Objecttype

This built-in property returns the name of the class or representation of an instance.

Syntax

MY_INSTANCE.objecttype

Example

Local Instance OBJ Using OBJECT
OBJ = NewInstance [GRP] Using C_CUSTOMER
TYPE= OBJ.objecttype
# TYPE is "C_CUSTOMER"
OBJ = NewInstance [GRP] USING C_SALESREP
# TYPE is "C_SALESREP"

See also

Structure, Instance, SetInstance, NewInstance, null, FreeInstance, FreeGroup, cast.