/setvar<name><value>

For: CimView only

(Configured on the current screen), sets variables and their initial values that a CimView screen uses when it opens from or overlays the current screen.

The arguments for this command line option are:

Argument

Specifies the:

<name>

Variable name, which can be qualified

<value>

Initial value of the variable the open screen uses.

Example

/setvar "\Button1\Tank" "0" /setvar "\Button2\Tank" "0" /setvar "Value" ""

sets the qualified variable \Button1\Tank to the initial value 0; the qualified variable \Button2\Tank to the initial value 0 and the unqualified variable, Value to no specified initial value.

Use double quotes as follows:

  1. If the name contains non-alphanumeric characters, e.g. spaces, hyphens, surround it with double quotes.

  2. If the value has embedded double quotes in it, double the embedded double-quotes.

  3. If the value contains non-alphanumeric characters, e.g. spaces, hyphens, embedded double-quotes, surround the entire value with double quotes.

Example

 

Name

Value

Syntax

No spaces

var1

value1

/setvar var1 value1

Space in name

my var

tank1

/setvar "my var" tank1

Space in name and Embedded quotes in value

 

 

my var

 

 

"tank1"

 

 

/setvar "my var" """tank1"""

Embedded quotes in value

 

var1

 

"hello, world!"

 

/setvar var1 """hello, world!"""

Embedded quotes in value

 

var1

 

a"b

 

/setvar var1 "a""b"

More information

Command Line arguments list.