UserGlobal

This command creates up to five global script variables that will be saved when the session is saved, and restored when the session is next loaded. While the session is running, these variables are identical to the variables created using the Global script command. Multiple UserGlobal statements can be used to create additional variables.

Use the Detroy command to remove the global variables from memory.

Syntax

UserGlobal var_name, [= value], ...

Synonyms

UG

Parameters

The following table describes the parameters of the UserGlobal command:

Parameter Description
var_name The name of the variable to create
= value The initial value for the variable; if omitted, the variables value is null
... Up to a total of five variables can be created

Examples

The following example sets up a variable to be saved with the user’s name.

UserGlobal UserName = "David Robertshaw"

The following example sets the open/saved title processing for Query Builder.

* After the following has been saved to a session file the
* Query Builder will show the name of the last opened/saved
* query in its title bar
UserGlobal Query_FileTitle=True

Version

4.2.1 Original