7.4

Table Of Contents
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 integer, measure value
Properties
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.
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.
lpp
Integer value containing the number of lines per page in the current data page. In database emulation, this value can also be
used in place of the subreccount() function to determine how many records a record set contains.
mediacolor
String value containing the color set in the Media color box of the Page dialog box for the current document page, or, if no
value is set in that box, the color set in the Media color box in the Document dialog box for the document. The Media color box
appears when you select Media selection in the Selection type box. Recall that the Media color box specifies the color of paper.
mediatype
String value containing the type set in the Media type box of the Page dialog box for the current document page, or, if no value
is set in that box, the type set in the Media type box in the Document dialog box for the document. The Media type box appears
when you select Media selection in the Selection type box. Recall that the Media type box specifies the type of paper (plain,
coated, etc.).
mediaweight
Integer value containing the weight set in the Media weight box of the Page dialog box for the current document page, or, if no
value is set in that box, the weight set in the Media weight box in the Document dialog box for the document. The Media weight
box appears when you select Media selection in the Selection type box. Recall that the Media weight box specifies the weight
of paper, in grams per square meter.
minfeature
Measure value containing the width of a single pixel at the current zoom level. Precise to 1/65536 inch. This is the minimum
size you can use in PlanetPress Talk code. If you use a smaller value (for example as an argument in a command), Plan-
etPress Talk automatically replaces that value with the value of minfeature.
orientation
Integer value containing the orientation of the current document page (0=portrait, 1=landscape, 2=Rotated portrait, 3=Rot-
ated landscape).
overflowcount
©2010 Objectif Lune Inc - 230 -