End_Construct_Object - cObject

End of object constructor.

Type: Event

Parameters: None

Syntax
Procedure End_Construct_Object 

Description

This message is sent during the end of object construction. It allows object initialization to be performed based on the status of the nearly completed object.

This message is normally only defined in class definitions; in object definitions, the same results can be achieved by performing the same initialization immediately before the End_Object comand (outside of any methods).

Construct_object is called at the start of object construction. End_construct_object is called at the end of class construction.

You must always forward send End_construct_object, usually at the end of the method.

A new class declaration should follows this general form:

Class NewClassName is a SuperClassName

    // Construct_Object: Object constructor.
    Procedure Construct_Object

        // you MUST always forward send this message
        Forward Send Construct_Object

        // Define new properties: Property {Type} {pxName} {initial_value}
        :

        // Create child objects
        :  
 
        // Set property values:
        :

    End_Procedure  // Construct_Object

    // Create and augment procedure and functions
    :

    Procedure End_Construct_Object
          
        //  change any properties or call methods before finalizing the object
        :
           
        // always forward send
        Forward send End _Construct_Object
    End_Procedure

End_Class // NewClassName


Object instantiation should follow this general form:

Object oObjectName is a cNewClassName
End_Object  // oObjectName

or

Get Create U_cNewClassName to hoNewObjectID


Note: Although Construct_Object and End_Construct_Object are not documented in subclasses of cObject, these two constructor methods are always part of the expected interface. They are an essential part of creating any subclass. Technically, these methods are constructors and not events - but they are documented here as events

See Also

Construct_Object