AppCtrlScript

MAY Computer

Help

SETLOC

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

Primary

See also  

SETVAL, DIM, SETVALS, SETGLOBVAL, SETHEADER

Sets a script variable to the specified value. Unlike SETVAL the SETLOC command sets a subroutine local variable. At the end of the subroutine the variable and it's value is automatically removed from variable stack.

In this case the variable is local for the subroutine.

To request a variables content use %LOC.<VariableName>% somewhere in an expression.

 

Syntax

SETLOC <VariableName>[, <Value>]

Part

Description

<VariableName> Name of the addressed local script variable.
<Value> Optional value to be assigned. If missing the default is an empty string.