Save Variables

This is a text-only command.

Type the text equivalent at the command prompt

SAVE VARIABLES creates a script that may be run with SCRIPT or SCRIPTM to restore the values of the current variables.

This command, and the ability to read saved variables, is helpful in a number of ways. For instance, you can use SAVEVARS to save calculated or retrieved values that you can pass on to another macro, or even another application. You to use one macro with different starting conditions, based upon user input, conditional tests, or other contexts. You can create a variable list with a text editor and save or edit it for use with your macros.

Typically, you will run SAVEVARS from a macro. The typical syntax is:

SAVEVARS <filename>

The .scr extension is automatically appended. The file is saved to the application path unless you specify otherwise.

To utilize the saved variables in a macro, use the SCRIPTM command:

SCRIPTM <filename>

Each line of the saved variable file is processed and loaded into memory. Macros can now utilize these macros as if they were initialized internally.

To manually create a variable list, use a text editor such as Notepad. For each variable you want to define, add a line using the following pattern:

GL;<variable name>;<variable value>

You do not need to specify the variable type (such as integer, word, line, etc.). CC3 will determine the type based on the value assigned. Be sure to save the file as a regular text file with an .scr extension.

Text equivalent: SAVEVARS