Copyright ® (1997-2003) EDMGROUP Pty Ltd - XML Database - XSTORAGE Reference

xstorage_save

[This is preliminary documentation and subject to change.]

Save XStorage into external file

Possible scenarios:

If XStorage was created in memory via xstorage_init - system will save internal data into the file, remove XStorage from memory and open XStorage from the file. After this calls API will access data from external file.

 

If XStorage was opened from external file - system will create a copy of XStorage, close original file and open XStorage from external file.

 

If XStorage was opened from the same file - system simply stores all internal buffers into external file.
Status:

Ready

Visual Basic Syntax

Private Declare Function xstorage_save
Lib "xmllab_dll.dll"

(ByVal XSTORAGE_FILE As String)
As Long

 

Example

The following Microsoft® Visual Basic® example saves XStorage into external file

Private Sub save_xstorage_Click()
Dim FILENAME As String
Dim Res As Long
FILENAME = "XMLLab_Samples\rft_and_html_txt_csv_asc.xba"
Dim Result As Long
Dim XSTORAGE_STAT As String
XSTORAGE_STAT = String(255, " ")
Result = xstorage_status(XSTORAGE_STAT)
If Result = 0 Then
Res = xstorage_save (FILENAME)
loaded_filename.Caption = "XStorage saved to " & FILENAME
Else
loaded_filename.Caption = "XStorage not initialized"
End If

End Sub
[C/C++]

C/C++ Syntax

   

Under development

 

C/C++ Return Values

C Sample

Under development

 

Remarks

 

See Also

 

  Contact Us   |   |  

 © 1997-2003 EDMGROUP (Australia) Pty Ltd. All rights reserved.