Command SAVE Foundation
Saves variables in an XPF file.
SAVE TO <cVarFile> [ALL [LIKE | EXCEPT <Wildcard>] ]
The command SAVE TO is identical in its functionality to the command dBASE or Clipper. It does not, however, support the file format of MEM files. In Xbase++, memory variables are not saved in MEM files but in XPF files. This file format allows saving arrays and code blocks on the hard disk along with the conventional data types character, date, numeric and logical.
SAVE TO saves all PRIVATE and PUBLIC variables visible at the time the command is executed to the memory variable file <cVarFile>.
The option ALL LIKE <Wildcard> specifies a group of variable names to save in the file. ? or * can be used as wildcard characters. ? stands for any single character in a variable name and * specifies any string. If the option ALL EXCEPT is used, all PRIVATE and PUBLIC variables whose names (symbol) do not match <Wildcard> are saved.
The command RESTORE FROM reads the memory variables from the file and fills them with the saved values.
Saving objects
In case of objects, only instances of a class can be saved, not the class object itself. It should also be noted that objects may have instance variables whose contents is not persistent (especially XbaseParts).
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.