7.4

Table Of Contents
Measure values specifying the width and height of the physical page in inches.
media
A string value specifying the type of paper to use.
color
String value specifying the color of the paper.
weight
Measure value specifying the weight of the paper (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.
Code Sample Example
define(&mcolor,string,'')
&mcolor := 'White'
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
Program Control
Exit (procedure)
Exits from a for...endfor or repeat...until loop.
Syntax
exit()
Argument
None
Code Sample Example
This example shows how to break from a loop when a specific word, in this case Invoice,’ is found somewhere on the data
page.
©2010 Objectif Lune Inc - 625 -