TCE objects

 

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

 

List
Enabled
Visible
Description
TCE class
Save
Initialize on change of object
Rules
Check rules on change
Assign valid value
Initialize with database value
Tag
Remark

 

 

Attributes, attribute functions and events:

 

Standard attributes:

 

AssignRuleIndex

Changed

Description

DifferingText

ItemList

Name

SQLPrepare

Tag

UserTouched

Valid

 

Standard events:

 

AfterLet

BeforeLet

Get

RaisedEvent

Validation

 

Special Attributes:

 

 

More:

AlternativeAssign (TCE object)

AlternativeCurrent (TCE object)

AlternativeDelete (TCE object)

AlternativeIndex (TCE object)

AlternativeName (TCE object)

AlternativeNames (TCE object)

AlternativesClear (TCE object)

AlternativeSet (TCE object)

BaseClass (TCE object)

ObjectAddress (TCE object)

ObjectCheckTriggers (TCE object)

ObjectClass (TCE object)

ObjectClassDescription (TCE object)

ObjectCount (TCE object)

ObjectDescription (TCE object)

ObjectFirst (TCE object)

ObjectFirstChild (TCE object)

ObjectHasOrder (TCE object)

ObjectIndex (TCE object)

ObjectInvalidElements (TCE object)

ObjectLast (TCE object)

ObjectLastChild (TCE object)

ObjectLevel (TCE object)

ObjectList (TCE object)

ObjectMove (TCE object)

ObjectNext (TCE object)

ObjectOrder (TCE object)

ObjectParent (TCE object)

ObjectPrevious (TCE object)

ObjectRaiseEvent (TCE object)

ObjectResetTriggers (TCE object)

ObjectTreeSerialize (TCE object)

SQLPrepare (TCE object)

UniqueChildClass (TCE object)

ValidChildElements (TCE object)