7.5

Table Of Contents
Code Sample Example
This example illustrates a few lines of code from a user-defined emulation. In these lines, if the line of input data (minus any
leading spaces)begins with the code ‘5’, the emulation advances to the next line of the data page and stores the line of input
data on that line. Notice the &current.line system variable—one of the variables in the current system object.
Example
if(eq(mid(trimleft(&str),1,1),'5'))
set(&current.line,&current.line + 1)
store(&current.line,trimleft(&str))
endif()
&Width (system variable)
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 PlanetPress Talk code you
enter in the object, group, or page.
Syntax
&width measure value
System Objects
Current (system object)
This object includes a set of system variables reflecting the current state of the document. All of these variables are read-only
and therefore cannot be changed using the set command, except where noted. You can access each property individually
using the same syntax.
Syntax
&current.property => value
Properties
datafilename
String value containing the full path and the internal filename, not the original values, of the currently used data file. Note: This
variable contains an empty string in printer centric mode.
datapage
Integer value containing the page number of the current data page, or the number of the current record set in the case of a
database emulation. Note that if you use Metadata and you modify it in any way (sorting, filtering, sequencing) you should use
&current.metadatapage instead.
line
Integer value containing the line number of the current line of data within the data page, or the number of the current record
within the record set. This value is read-write and can be modified using the set command.
©2010 Objectif Lune Inc - 378 -