Difference between revisions of "CREATEOBJECT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 21: | Line 21: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Objects]] | [[Category:Objects]] | ||
− |
Revision as of 07:13, 4 February 2013
Contents
Purpose
Function to create a new object based on a defined class.
Syntax
CREATEOBJECT(<expC> [,<exp1>,<exp2>...)
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), COMPOBJ(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, LOADOBJECT(), NEWOBJECT(), OBJECT(), PRINT_HTML(), PRINT_JSON(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, WITH
Description
The 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")