A TCE object is an object instance created of a TCE class at runtime. There is no limit in creating TCE objects of any TCE class. TCE objects will be maintained by an object definition in the class or a local TCE object variable.
Supposing, there is a class structure as defined below:
The class Cars is defining features deriving to the whole class structure:
Now you are deciding to create an object of the Cars classes on runtime.
You will create another class holding the object definition:
Now you have two possibilities to define the object definition in the class Car dealer:
First possibilty:
The object definition is placed below Ordered objects. With this definition place, the object created on runtime has a valid object order.
Second possibility:
Defined on this place below Features and unordered objects the object will not have a valid object order.
If you do not define an initialization for the object definition, the variable Cars will be NoValue on runtime.
Define an initialization yet:
With this initialization, there will be an object of class BMW when an object of class Car Dealer is created.
When you take a look into the properties of the object definition of Cars, you will see the property TCE class, or let’s say definition class of the variable:
An object variable of a distinct type (here: Cars) can create objects of all classes below the definition class or the class itself. In our sample these are the classes: ::Cars, ::Mercedes, ::BMW, ::Honda, ::Crysler
If you like to initialize an object definition in one of your functions, use the following:
Cars := ::Mercedes
If you like to create an object in scope of a function, do the following:
Dim ObCars As ::Cars
ObCars := New ::Mercedes
If you like to check the type of object, which is currently set to a TCE object variable, use:
Dim IsMercedes As Boolean
IsMercedes := Cars IsA ::Mercedes
If you like to access a feature of an object, use the Dot operator:
Dim Model As String
Model := Cars.CarModel
Properties of an object definition of Type TCE object
Attributes, attribute functions and events:
Standard attributes:
Standard events:
Special Attributes:
AlternativeAssign (TCE object)
AlternativeCurrent (TCE object)
AlternativeDelete (TCE object)
AlternativesClear (TCE object)
ObjectCheckTriggers (TCE object)
ObjectClassDescription (TCE object)
ObjectDescription (TCE object)
ObjectInvalidElements (TCE object)
ObjectResetTriggers (TCE object)