7.5

Table Of Contents
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()
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)
for(&x,1,1,&current.lpp)
if(pos('Invoice',@(&x,1,80))>0)
exit()
endif
endfor()
©2010 Objectif Lune Inc - 420 -