Difference between revisions of "SAVEOBJECT()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 14: Line 14:
  
 
==Description==
 
==Description==
The SAVEOBJECT() function is used to save an object or dynamic array to an external .obf file.   
+
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 file.  If the file extension is not specififed, '.obf' is assumed.  The SAVEOBJECT() function returns .T. (true) if the object is successfully saved.
<object>
+
 
<expC> is filename
+
The built-in ''save'' class method can also be used to save an object to an external .obf file.
 
   
 
   
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
+
open database southwind
 +
select * from shippers into object shipobj
 +
saveobject(shipobj,"shippers")
 
</code>
 
</code>
  

Revision as of 09:57, 14 December 2009

Template:YLM to do

Purpose

Function to save an object or dynamic array to an external .obf file


Syntax

SAVEOBJECT(<object>, <expC>)


See Also

ADDPROPERTY(), ARRAY(), CLASS - Methods, CLASS - Parameters, CLASS - Properties, CLASS - Scoping, CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), LIST CLASSES, LOADOBJECT(), METHOD, NEWOBJECT(), OBJECT(), REMOVEPROPERTY()


Description

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 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.


Example

open database southwind
select * from shippers into object shipobj
saveobject(shipobj,"shippers")


Products

Recital, Recital Server