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
Private Declare Function xstorage_save
Lib "xmllab_dll.dll"(ByVal XSTORAGE_FILE As String)
As Long
The following Microsoft® Visual Basic® example saves XStorage into external file
Private Sub save_xstorage_Click()Dim FILENAME As StringEnd Sub
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
Under development
Under development
|
Contact Us | | |
|
© 1997-2003 EDMGROUP (Australia) Pty Ltd. All rights reserved. |