Difference between revisions of "LOADOBJECT()"
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS() | + | [[ACLASS()]], [[ADDPROPERTY()]], [[AMEMBERS()]], [[COMPOBJ()]], [[CREATEOBJECT()]], [[DEFINE CLASS]], [[DISPLAY CLASSES]], [[DODEFAULT()]], [[FOREACH]], [[LIST CLASSES]], [[NEWOBJECT()]], [[OBJECT()]], [[PRINT_HTML()]], [[PRINT_JSON()]], [[PRINT_R()]], [[PRINT_XML()]], [[REMOVEPROPERTY()]], [[REQUIRE_ONCE()]], [[SAVEOBJECT()]], [[SQL SELECT]], [[WITH]] |
==Description== | ==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. | 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'' | + | 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== | ==Example== | ||
Line 26: | Line 26: | ||
</code> | </code> | ||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Objects]] | [[Category:Objects]] | ||
− |
Latest revision as of 07:14, 4 February 2013
Contents
Purpose
Function to load an object or dynamic array from an external .obf file
Syntax
LOADOBJECT(<expC>)
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, LIST CLASSES, 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")