7.4

Table Of Contents
selectmedia(8.5,11,'Danny',&mcolor,20,0,0)
The code above will generate the following PostScript code (notice how the variable was
not replaced by its value).
612 792 0 ^SM (Danny) &mcolor 20 ^SPM
SelectPrinter (procedure)
This command is used to select the printer on which the next page set will be sent. It can be used to select the same physical
printer with different options, or a different printer altogether. It is meant to be used with the EndPageSet() command. This
command can currently be used only for Windows Printing.
Syntax
selectprinter(printername)
Arguments
printername
String identifying a printer queue.
Example
Refer to the code example given in the section describing the EndPageSet command on page 1.
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)" (page 393).
Syntax
set( name, value )
Arguments
name
Variable name, prefixed with the ampersand (&) character. The variable name must already exist.
value
New 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
©2010 Objectif Lune Inc - 441 -