7.6

Table Of Contents
Code Sample Example
In this example, the current page executes pages 2, 3 or 4 according to a data selection. This allows you to create pages of
'subroutines' that can be called from any other page.
Example
define(&x,integer,strtoint(@(7,4,8)))
if(&x < 1000)
execpage('PAGE1')
elseif()
if(&x > 1000)
%This is equivalent to execpage('PAGE3')
@PAGE3
elseif()
execpage('PAGE2')
endif()
endif()
ShowPage (procedure)
Instructs the printer to output the page and move on to the next instruction.
This command has no effect on screen, because it is intended to be executed only inside the printer.
Syntax
showpage()
Argument
None
Code Sample Example
This example specifies the number of pages to print at line 1, between columns 1 and 5.
Example
Define(&NumberOfPages,integer,strtoint(trim(@(1,1,5))))
Define(&x,integer,1)
for(&x,1,1,&NumberOfPages)
execpage('Page1')
showpage()
endfor()
©2010 Objectif Lune Inc - 621 -