transient

Type: Boolean

The read-only transient property of the Class class specifies whether instances of the class are transient by default. This default value can be overridden when an object is created. Transient objects exist only for some predetermined time within an application session. They are not stored in the database and are destroyed when explicitly deleted or when the application terminates. (See also "Caveat When Handling Shared Transient Class Instances", earlier in this section.) The following example shows the use of the transient property.

load() updating;
vars
    cls : Class;
begin
    self.centreWindow;
    app.mousePointer := self.MousePointer_HourGlass;
    foreach cls in currentSchema.getAllClasses(false) do
        if cls.transient = true and
            cls.inheritsFrom(Form) = true then
            comboBoxScreen.addItem(cls.name);
            comboBoxScreen.itemObject[comboBoxScreen.newIndex] := cls;
        endif;
    endforeach;
    app.mousePointer := self.MousePointer_Arrow;
end;