7.6

Table Of Contents
Arguments
target
Name of a variable of type string in which to perform the search.
search
String value to search for.
Code Sample Example
This example splits a string delimited with semi-colons.
In the OnReadDataPage event of the user-defined emulation, the &str system variable contains each new line of data
being fed to the document. Also, do not assign anything to the variable while inside the search-endsearch loop; it will get
overwritten.
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
©2010 Objectif Lune Inc - 322 -