Difference between revisions of "CREATEOBJECT()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Objects
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to create a new object based on a defined class.
 
Function to create a new object based on a defined class.
Line 8: Line 4:
  
 
==Syntax==
 
==Syntax==
CREATEOBJECT(<expC> [,<exp1>,<exp2>)
+
CREATEOBJECT(<expC> [,<exp1>,<exp2>...)
  
  
 
==See Also==
 
==See Also==
[[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[CLASS]], [[COMPOBJ()]], [[DEFINE CLASS]], [[DODEFAULT()]], [[METHOD]], [[NEWOBJECT()]], [[REMOVEPROPERTY()]], [[SET CLASSLIBRARY]], [[WITH]]
+
[[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[CLASS]], [[CLASS - Methods]], [[CLASS - Parameters]], [[CLASS - Properties]], [[CLASS - Scoping]], [[COMPOBJ()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[LOADOBJECT()]], [[METHOD]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]], [[WITH]]
  
  
 
==Description==
 
==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 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.
 
The CREATEOBJECT() function returns a reference to the newly created object.
Line 28: Line 24:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Objects]]
 
[[Category:Objects]]
 
[[Category:Objects Functions]]
 
[[Category:Objects Functions]]

Latest revision as of 15:01, 14 December 2009

Purpose

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


Syntax

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


See Also

ACLASS(), ADDPROPERTY(), AMEMBERS(), CLASS, CLASS - Methods, CLASS - Parameters, CLASS - Properties, CLASS - Scoping, COMPOBJ(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, LOADOBJECT(), METHOD, 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")


Products

Recital Server, Recital