6.0

Table Of Contents
136
Language Reference
4
Arguments
width, height — Integer values specifying, in points, the width and height respectively of the physical
page. There are 72 points to an inch.
media — A string value specifying the type of paper to use.
color — String value specifying the color of the paper.
weight Integer value specifying the weight of the paper to use, in grams per square meter. You can
convert weight in pounds to weight in grams by multiplying by the weight in pounds by 3.76.
orientation — Integer representing the orientation of the page (0=Portrait, 1=Landscape, 2=Reverse
portrait, and 3=Reverse landscape).
mode — Reserved for future use. Specify 0 for now.
Set (procedure)
This command assigns a new value to a variable. Only user-defined variables can be set. System variables
are read-only. Note that you can also use the assignment operator to assign a value to a variable. See “:=
(operator)” on page 66.
Syntax
set( name, value )
Arguments
name — Variable name, prefixed with the ampersand (&) character. The variable name must already exist.
valueNew value to store in the variable. This value can be any valid PlanetPress Talk expression, as long
as its type is the same as the variable's original type.
Code Sample Example
set( &invoice_number, (&invoice_number + 1) )
set( &is_bottom, (not(&is_top) and not(&is_middle)) )
&tax_rates[2] :=32
put( &tax_rates[2], @(1,3,5) )
set( &months, ['JAN','FEB','MAR','APR','MAY'] )
set( &mustard_color,[0,20,90,16] )
set( &prices, [12.5632,18.9932,23.6651,27.0300] )
put( &imagefiles[0], 'c\\images\\sushi.png' )