setwindowglobal
WINDOW
,
VARIABLE
,
VALUE

The setwindowglobal statement sets the value of a windowglobal variable (optionally in another window).


Parameters

This statement has three parameters:

window – the name of the window that contains the windowglobal variable. If this parameter is omitted or is "", the currently active window is used.

variable – the name of the windowglobal variable. Since this is the name of the variable, and not the variable itself, you usually need to quote the name (unless you are somehow calculating it with a formula).

value – the value to be placed into the windowglobal variable.


Description

This statement changes the value of a windowglobal variable. If the variable doesn’t already exist, it will be created.

setwindowglobal "SaleTaxRate",0.075

This example sets the HomeZipCode windowglobal variable in the Contacts window to 91209.

 setwindowglobal "Contacts","HomeZipCode","91209"

Note: This statement is extremely fast, and sets the value without temporarily switching to the specified window.


See Also


History

VersionStatusNotes
10.0NewNew in this version, but almost identical to the setfilevariable statement.