CREATEOBJECT()

From Recital Documentation Wiki
Revision as of 17:05, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

Objects


Purpose

Function to create a new object based on a defined class.


Syntax

CREATEOBJECT(<expC> [,<exp1>,<exp2>…)


See Also

ACLASS(), ADDPROPERTY(), AMEMBERS(), CLASS, COMPOBJ(), DEFINE CLASS, DODEFAULT(), METHOD, NEWOBJECT(), REMOVEPROPERTY(), SET CLASSLIBRARY, WITH


Description

The Visual FoxPro compatible CREATEOBJECT() function is used to create a new object based on a defined class. The name of the class is specified in <expC>. Any parameters required for the object creation are specified in a comma-separated list after the class name.

The CREATEOBJECT() function returns a reference to the newly created object.


Example

myObject = createobject("MyClass")


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer