Condividi tramite


SAVE TO Command

Stores current variables and arrays to a variable file or memo field.

SAVE TO FileName | MEMO MemoFieldName
   [ALL LIKE Skeleton | ALL EXCEPT Skeleton]

Parameters

  • FileName
    Specifies the variable file in which the variables and arrays are saved. The default extension for a variable file 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

Use RESTORE FROM to place variables and arrays back into memory from a variable file or memo field. Note that object type variables cannot be saved to a variable file or memo field.

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*

See Also

PRIVATE | PUBLIC | RELEASE | RESTORE FROM