ObjectClassDescription

concerns

You can use the ObjectClassDescription attribute to query the object's multilingual class name. When an object is created, the ObjectDescription attribute is also set to the value of ObjectClassDescription. However, because ObjectDescription is changeable, ObjectDescription can be reset to the value of ObjectClassDescription.

 

Syntax

ObjectClassDescription

Return value

Type

Description

String

Naming the class

Remark

The attribute is read-only.

 

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

MsgBox Car.ObjectDescription

# shows: Mercedes

 

Car.ObjectDescription := "My lovely old car"

MsgBox Car.ObjectDescription

# shows: My lovely old car

 

Car.ObjectDescription := Car.ObjectClassDescription

MsgBox Car.ObjectDescription

# shows: Mercedes