SaveToLocalFile
Find the syntax, use, parameters, return values, and an example for the SaveToLocalFile macro command in Connexion client.
Syntax | nSaveFileNumber = CS.SaveToLocalFile (bAuthUnlock, bDelete) |
---|---|
Use to | Save a record, or records selected in a list, to the default local save file Same as using the Action > Save Record to Local File menu command. |
Parameters |
|
Return values | Save file number(s) the system assigns to the saved record(s). Or The value -1 when the corresponding command (Action > Save Record to Local File) is unavailable. The command is unavailable when a record is re-saved to the local file with no changes to the record. If the macro returns -1, you can get the save file number by using: bool = QueryRecordStatus (“SAVE”, sNumber) |
Example | Sub Main()
Dim CS As Object If CS.Search “BS”, ““ > 0 Then nSaveFileNumber = CS.SaveToLocalFile (False, True) MsgBox “The record(s) were added as save file number(s)” + (nSaveFileNumber) |
What this example does |
|