Function Run1LPFCommand: SAVEDATAFILE

 

Function Function Run1LPFCommand( sInput$ ) As Long

Purpose: Run OneLiner commands: File  | Save and File | Save as.

Works in:                             OneLiner.  

Parameters:     

sInput       [in] XML string, or full path name to XML file, containing XML node as described in Remarks section below.

Return value:

1               Success

0               Failure

Remarks: sInput must include XML node SAVEDATAFILE with attributes in the list below (* denotes required entries, [] denotes default value).

PATHNAME          Name or full pathname of new OLR file for File | Save as command. If only file name is given, file will be saved in the folder where the current OLR file is located.

If no attribute is specified, the File | Save command will be executed.

 

Example:                                                                                          

 

Sub main

  sInput$ = "< SAVEDATAFILE " & _

            " PATHNAME =""c:\000tmp\newfile.olr""

            " />"

  Print sInput

  If Run1LPFCommand( sInput ) Then Print "Success" Else Print ErrorString()

End Sub