Instantiating an Object

Instantiating an object is accomplished using the CREATEOBJECT function:


oObject = CREATEOBJECT(<classname>)

where <classname> is the name of class upon which we are basing the object. oObject becomes an instance of the class.

Bear in mind that, to use a coded class, the .PRG that has the class definition must be available either by being in the calling stack or by using SET PROCEDURE (which now supports an ADDITIVE clause).