LOADOBJECT()
Purpose
Function to load an object or dynamic array from an external .obf file
Syntax
LOADOBJECT(<expC>)
See Also
ADDPROPERTY(), ARRAY(), CLASS - Methods, CLASS - Parameters, CLASS - Properties, CLASS - Scoping, CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), LIST CLASSES, METHOD, NEWOBJECT(), OBJECT(), REMOVEPROPERTY(), SAVEOBJECT(),
Description
The LOADOBJECT() function is used to load an object or dynamic array from an external .obf file. returns an object <expC> is filename
The SAVEOBJECT() function is used to save an object or dynamic array to an external .obf file. The <object> is the name of the object and <expC> is the name of the target file. If the file extension is not specififed, '.obf' is assumed. The SAVEOBJECT() function returns .T. (true) if the object is successfully saved.
The built-in save class method can also be used to save an object to an external .obf file. Similarly, the LOADOBJECT() function can be used to restore an object or dynamic array from an external .obf file and objects have access to the built-in load class method.
Example
class myclass ... endclass obj1 = new myclass() saveobject(obj1,"file1") // or obj1.save("file1") ==Example== <code lang="recital">
Products
Recital, Recital Server