8.5

Python
In Python, the raise statement is similar to JavaScript and will stop processing unless an except statement
is used. See the python documentation.
s = Watch.GetJobInfo(9)
if not s:
raise NameError('Value cannot be empty')
else:
# Do something with Job Info 9!
Watch.Log("Job Info 9's value is: " + s,5)
Perl
In PERL, die() raises an exception and triggers the On Error tab, unless the unless command is used. See
the perl documentation.
$s = $Watch->GetJobInfo(9);
if (s = "") {
die "Value cannot be empty";
} else {
# Do something with Job Info 9!
$Watch->Log("Job Info 9's value is: " . $s,4);
}
Data repository API
Introduction
The Data Repository is accessed via a COM object that exposes methods to store and retrieve data within
the Repository. All operations on the Repository must be performed through this API - rather than directly
accessing the physical file - since the Repository's underlying file media may change over time. Note that
this API is used by all stock tasks dealing with the Repository.
The table below lists the different levels in the repository and what their names corresponds to:
The term ... ... is the same as an Excel ...
... is the same as a Database ...
Group Sheet Table