MSM-Workstation
Macros

Go back to the alphabetic list of macros
Go back to the first page of this tutorial

%%ResetVar ( TiedVariable [ , Value ] )

Update the value displayed in a control on a window by referring its local variable.

TiedVariable A local variable tied to a control on a window.

Value An optional value to assign to the variable.

The macro %%ResetVar is used to refer to controls by means of local variables associated with the control via the property VarName. If a Value parameter is specified, the variable specified by TiedVariable is set to Value; otherwise the value already in that variable is used. The name specified in the parameter TiedVariable is used to look up the runtime window and control to which it refers, and the Property Value of that control is redefined, causing the display to be updated.

The value in the control is killed before being set. Otherwise this macro has an effect similar to the macro %%SetVar. Killing the value first primarily affects multiple-valued data.

Example

%%ResetVar(TESTNO)
Kill the property Value of the control associated with local variable TESTNO, then set the property Value to the value in local variable TESTNO.

See also

%%GetVar and %%SetVar.