ObjectClass

concerns

The ObjectClass attribute returns the assigned class object of the object.

 

Syntax

ObjectClass

Return value

Type

Description

Class

A variable of Type Class that can be used to retrieve the class properties

Remark

The attribute is read-only.

The function raises an error if no class is assigned to the object.

 

Example:

There is a class Car with the multilingual description ‘Mercedes’. In the class, where the code runs, there is an object definition ‘Car’, defined with the TCE class ‘Car’.

 

Car := New ::Car

 

Dim c As Class

 

c := Car.ObjectClass

 

MsgBox c.KNB.Name

#shows the name of the knowledge base of class ::Car