letglobal
VARIABLE
=
VALUE

The letglobal statement creates a global variable and assigns a value to it.


Parameters

This statement has two parameters:

variable – is the name of the variable that you want to create or an existing variable to which you want to assign to a new value.

value – calculates the value that will be placed into the variable.


Description

This statement works just like an assignment, but the destination of the assignment is automatically created as a global variable. For example, this statement creates a global variable named pageCount and assigns the value 23 to it.

letglobal pageCount=23

The value can be any data type, for example text like this:

letglobal userName="Bob"

If the variable already exists, any value it contains is replaced.

Note: This statement is identical to the assignglobal statement, but letglobal uses an equal sign between the variable name and the value, instead of a comma.


See Also


History

VersionStatusNotes
10.0NewNew in this version.