7.6

Table Of Contents
DoForm (procedure)
Runs the current document. This command is usually issued once a complete data page has been received and committed to
buffer. This command should only be used before reading the next page of data from the input stream. It is strictly for use
within a User-Define Emulation.
Syntax
doform()
Argument
None
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()
GetNextDataPage(procedure)
Advance to the next data page of the sample data file. Note that this command may have unpredicted behavior if not used cor-
rectly in documents that use a user-defined emulation.
This command should only be executed when printermode is not in design mode. The result will be incorrect on screen, but
there will be no
unexpected behaviors. Therefore, the only solution is for end-users to make sure the command doesn't get executed while in
Design mode by bracketing it within a if(&printermode<>0) ... endif()
structure.
Syntax
getnextdatapage()
SetDataPage(procedure)
Specify the data page of the sample data file.
Syntax
setdatapage( pagenum )
©2010 Objectif Lune Inc - 614 -