Data Objects
Data objects are either variables or object properties that store data while the script is running.
Variables can be of several types:
•
Boolean (bool)
•
Integer (int)
•
Real (real)
•
String (string)
•
Document (doc)
Declaring Variables
Before you can use a variable you must declare it. Declaring the variable is basically a description of
the variable (what its name is and what kind of value it can have.)
There are some rules to follow when naming your variables:
•
Name must consist of letters, numbers, and underscores.
•
The first character of the name must be a letter.
•
Must be unique within the script, the names are not case sensitive so "Name", "NAME", and
"name" are all considered the same variable name.
•
Cannot be a reserved word (one that has a special meaning to the script compiler). For a list of
Reserved words, see the "Script Reference" located at Start
Document Distributor Client.
Valid Variable Declarations:
string abc
int try2
doc new_resume
real aFairlyLongVariableName
Invalid Variable Declarations:
integer try2 ("int" is the name of the type, not "integer")
bool 2borNot2b (starts with a number rather than a letter)
string doc ("doc" is a reserved word)
To see a complete list of the properties and methods of each data type, see the "Script Reference"
located at Start
Programs
Lexmark
Document Distributor Client.
28
Programs
Lexmark