6.0

Table Of Contents
63
Code Sample Example
The first line of code assigns data from the current data page to a variable. The second line of code checks
for the presence of a value inside the data page and sets a Boolean variable according to the results.
Example
define(&invnum,string,@(7,50,59))
define(&isfirstpage,boolean,(strtoint(@(1,60,70))=1))
@name (function/procedure)
Calls and executes a function or procedure created using the function() command.
Syntax
@name( parameters ) integer, measure, currency, string, Boolean or no return value
Arguments
name — String value specifying the name of the function or procedure.
parameters — List of parameters required by the specified function or procedure.
@page (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. The height and width of the page
content thus becomes the height and width of the group that would result if you created a single group of
all of the page elements. If you want to include the paper handling properties in the page execution, see
$element (procedure).
The @page() and execpage() commands are equivalent.
Syntax
@page()
Arguments
page — String value specifying the name of the page you want to execute.
$element (procedure)
Executes the specified document element (object, page, resource, etc.). Note that in the case of a page, this
procedure executes both the content of the page and the paper handling properties of the page. The
height and width of the page are thus as set by the page size in the paper handling properties of the page.