SAVE TO Command
Stores current variables and arrays to a variable file or memo field.
Note
Object type variables cannot be saved to a variable file or memo field. The SAVE TO command does not support saving arrays exceeding 65,000 elements.
SAVE TO FileName | MEMO MemoFieldName
[ALL LIKE Skeleton | ALL EXCEPT Skeleton]
Parameters
FileName
Specifies the variable file that the variables and arrays are saved to. For a variable file, the default file name extension is .mem.MEMO MemoFieldName
Specifies the memo field in which the variables and arrays are saved.ALL LIKE Skeleton
Specifies that all variables and arrays, which match the specified Skeleton, be saved. The skeleton can include the question mark (?) and asterisk (*) wildcards.ALL EXCEPT Skeleton
Specifies that all variables and arrays except those that match the specified Skeleton be saved. The skeleton can include the question mark (?) and asterisk (*) wildcards.
Remarks
To place variables and arrays back into memory from a variable file or memo field, use the RESTORE FROM command. For more information, see RESTORE FROM Command.
The variable file or memo field is marked with the current code page.
Example
In the following example, two variables are created. They are saved to a variable file and restored without clearing the existing variables.
gnVal1 = 50
gcVal2 = 'Hello'
SAVE TO temp
CLEAR MEMORY
gdVal3 = DATE( )
RESTORE FROM temp ADDITIVE
CLEAR
DISPLAY MEMORY LIKE g*