SAVE TO Command
Stores current variables and arrays to a variable file or memo field.
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.
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.
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*