6.0

Table Of Contents
90
Language Reference
4
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('PAGE 1')
elseif()
if(&x > 1000)
execpage('PAGE 3')
elseif()
execpage('PAGE 2')
endif()
endif()
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.
define(&x,integer,1)