7.6

Table Of Contents
Example
define(&v1,string,'This;is;a;test') %Create the variable
search(&v1,';') %Start loop
show(&v1) %Show token
crlf() %Skip line
endsearch()
show(&v1) %Show remaining text
SelectMedia (procedure)
On screen, displays the physical page. On a PostScript printer, calls the specified paper.
Variables used as arguments in this command are not parsed when printing using the Optimized PostScript Stream mode.
Syntax
selectmedia( width, height, [media], [color], [weight], orientation, mode )
Arguments
width, height
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'
©2010 Objectif Lune Inc - 438 -