Difference between revisions of "CREATEOBJECT()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Yvonne.milne (Talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to create a new object based on a defined class. | Function to create a new object based on a defined class. | ||
− | |||
==Syntax== | ==Syntax== | ||
CREATEOBJECT(<expC> [,<exp1>,<exp2>...) | CREATEOBJECT(<expC> [,<exp1>,<exp2>...) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS() | + | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[COMPOBJ()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[LOADOBJECT()]], [[NEW Operator]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]], [[WITH]] |
− | + | ||
==Description== | ==Description== | ||
Line 15: | Line 12: | ||
The CREATEOBJECT() function returns a reference to the newly created object. | The CREATEOBJECT() function returns a reference to the newly created object. | ||
− | |||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Objects]] | [[Category:Objects]] | ||
− | [[Category: | + | [[Category:Declaring Variables and Arrays]] |
Latest revision as of 07:09, 7 April 2017
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(), NEW Operator, 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")