7.6

Table Of Contents
Code Sample Example
This example is an extract from a user-defined emulation. The search() command looks for a formfeed and adds its line
number. The line number is stored as a string and the document is run. The data page is cleared and the search is over.
Example
search(&str,'\014')
set(&current.line,&current.line + 1)
store(&current.line,&str)
doform()
clearpage()
endsearch()
endpageset (procedure)
Ends any page set and subset when printing using a Windows driver. When creating a VDX PlanetPress Design document, this
command signals the end of a booklet rather than a simple page subset.
Syntax
endpageset()
Argument
None
Code Sample Examples
In both modes, the command is called the same way.
% Print using a Windows driver mode
if(&is_CA)
endpageset()
selectprinter('MyCanadianPrinter')
else
endpageset()
selectprinter('MyOtherPrinter')
endif()
% Work with VDX
if(&is_LastBookletPage)
endpageset()
endif()
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 612).
The execpage() and @page() commands are equivalent.
©2010 Objectif Lune Inc - 417 -