7.4

Table Of Contents
Example
The following two lines of code are functionally equivalent and display the content of a page named MyFirstPage:
@MyFirstPage
execpage('MyFirstPage')
ExecPage (procedure)
Executes the content of the specified document page, as if it were part of the calling page. The content of the page in this case
excludes the paper handling properties of the page. If you want to include the paper handling properties in the page execution,
see "$element (procedure)" (page 613).
The execpage() and @page() commands are equivalent.
Syntax
execpage( pagename )
Argument
pagename
String value specifying the name of the page to run. The page must exist, and its name is case insensitive.
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()
©2010 Objectif Lune Inc - 622 -