Difference between revisions of "LOADOBJECT()"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(3 intermediate revisions by one user not shown) | |||
Line 8: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ADDPROPERTY()]], [[ | + | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[CLASS]], [[CLASS - Methods]], [[CLASS - Parameters]], [[CLASS - Properties]], [[CLASS - Scoping]], [[COMPOBJ()]], [[CREATEOBJECT()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[METHOD]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]], [[WITH]] |
Line 14: | Line 14: | ||
The LOADOBJECT() function is used to load an object or dynamic array from an external .obf file. The name of an existing file is specified in <expC>; if no file extension is included, '.obf' is assumed. The LOADOBJECT() function returns an object. | The LOADOBJECT() function is used to load an object or dynamic array from an external .obf file. The name of an existing file is specified in <expC>; if no file extension is included, '.obf' is assumed. The LOADOBJECT() function returns an object. | ||
− | For existing objects, the built-in ''load'' class method can also be used to load an object definition from an external .obf file. Similarly, the SAVEOBJECT() function can be used to save an object or dynamic array to an external .obf file and existing objects have access to the built-in ''save'' class method. | + | For existing objects, the built-in ''load'' [[CLASS - Methods|class method]] can also be used to load an object definition from an external .obf file. Similarly, the SAVEOBJECT() function can be used to save an object or dynamic array to an external .obf file and existing objects have access to the built-in ''save'' class method. |
Line 28: | Line 28: | ||
// or for an existing object | // or for an existing object | ||
obj1.load("file1") | obj1.load("file1") | ||
− | + | </code> | |
==Products== | ==Products== | ||
Line 35: | Line 35: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Objects]] | [[Category:Objects]] | ||
− | [[Category:Objects Functions]] | + | [[Category:Objects Functions]] |
Latest revision as of 15:06, 14 December 2009
Purpose
Function to load an object or dynamic array from an external .obf file
Syntax
LOADOBJECT(<expC>)
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), CLASS, CLASS - Methods, CLASS - Parameters, CLASS - Properties, CLASS - Scoping, COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, METHOD, NEWOBJECT(), OBJECT(), PRINT_HTML(), PRINT_JSON(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, WITH
Description
The LOADOBJECT() function is used to load an object or dynamic array from an external .obf file. The name of an existing file is specified in <expC>; if no file extension is included, '.obf' is assumed. The LOADOBJECT() function returns an object.
For existing objects, the built-in load class method can also be used to load an object definition from an external .obf file. Similarly, the SAVEOBJECT() function can be used to save an object or dynamic array to an external .obf file and existing objects have access to the built-in save class method.
Example
class myclass endclass obj1=new myclass() obj1.save("file1") obj2=loadobject("file1") // or for an existing object obj1.load("file1")
Products
Recital, Recital Server