7.0

Table Of Contents
Example
watch.setjobinfo 3, "new value"
12.4.8 Watch.GetVariable
Returns the string value of the corresponding variable name. Note that if an undeclared variable is called
using this method, an error will be generated.
Syntax
Watch.GetVariable(Name: String): String
Examples
s = watch.GetVariable(“MyLocalVariable“)
s = watch.GetVariable(“global.MyGlobalVariable“)
12.4.9 Watch.SetVariable
Sets the variable to a specified string value. Note that if an undeclared variable is called using this method, an
error will be generated.
Syntax
Watch.SetVariable Name: String; Value: String
Examples
watch.setvariable “MyLocalVariable“, "new value"
watch.setvariable “global.MyGlobalVariable“, "new value"
12.4.10 Watch.ExpandString
Provides access to the emulated job file and to all variables. This function returns a string that is the expanded
version of the input string.
Syntax
Watch.ExpandString(StringToExpand) -> string
Arguments
StringToExpand—A regular parseable string that may contain system variables (%u, %f), user variables
(%1 to %9), octal codes, and data selections.
Using Scripts - Using Dot Notation
Objectif Lune Inc. © 2009 236