7.5

Table Of Contents
search(&str,'\014')
set(&current.line,&current.line + 1)
store(&current.line,&str)
doform()
clearpage()
endsearch()
set(&current.line,&current.line + 1)
store(&current.line,&str)
if(ge(&current.line,&current.lpp))
doform()
clearpage()
endif()
DefineData (procedure)
Change the active data file to the one specified in the path parameter.
Changing the data file in the middle of document processing can have unexpected consequences and should only be
used if you understand the implications of doing so.
Syntax
definedata( path )
Argument
path
String value specifying the path of the data file.
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)
©2010 Objectif Lune Inc - 615 -