7.4

Table Of Contents
Global variables are variables that you define using the Global Variable Properties dialog box in PlanetPress. Global var-
iables appear in TreeView in PlanetPress. Global variables have a global scope; you can reference global variables any-
where you can insert a PlanetPress Talk expression in PlanetPress.
You cannot define a global variable with the same name as a system variable.
3. Local Variables
Local variables are variables that you define using the PlanetPress Talkdefine command. Local variables have a local
scope; you can reference them only within the area of the object in which you create them. You can create local var-
iables within the PlanetPress Talk properties of an object or group, within the Text property of a text/box object, and
within the PlanetPress Talk Code property of a PlanetPress Talk object.
You should never define a local variable with the same name as a system variable.
System Variables with Local Scope
Name: Description:
&Height
System variable with a scope local to a specific object, group, or page. The system initializes this variable to the
value of the Height property of the object’s, group’s, or page’s Basic Attributes. You can reference and set this var-
iable in any PlanetPress Talk code you enter in the object, group, or page.
&Width
System variable with a scope local to a specific object or group. The system initializes this variable to the value of
the Width property of the object’s or group’s Basic Attributes. You can reference and set this variable in any Plan-
etPress Talk code you enter in the object, group, or page.
System Variables with Global Scope
Name: Description:
&EOJob
Read-only variable that returns True if the document has processed the last line of data or if the line that fol-
lows the last form feed character (ASCII 12) is empty.
&FirstSide
Read-only variable that returns True when a page is printing on the first side of a page in duplex mode (dou-
ble-sided printing). In simplex mode (single-sided) &firstside always returns True.
&PrinterMode
Returns the current output mode for the document. This allows you to test for a specific value and react
accordingly.
&Str Contains a line of input data.
©2010 Objectif Lune Inc - 228 -