Sets the value of a user variable with the specified name associated with the specified scope. If the variable does not exist, it is created.

Parameters:

scope

The scope (context) with which the variable is associated. (See "About User Variables" below.)

If this parameter is not specified, the global scope is assumed by default.

name
The variable name (case sensitive).
value
The variable value. (Note, null value is legitimate as any other object.)

Returns:

The new value assigned to the variable (i.e. the same as passed in the 'value' parameter)

See Also:

getVar(), checkVar(), removeVar()

${include ../../refs/user_vars.htm}