7.4

Table Of Contents
Arguments
expression1, expression2
Integer, measure or currency values. Both expressions must be the same type. The returned value is set according to the type
of the parameters.
Code Sample Examples
Examples 1 and 2 show both ways of dividing numbers.
Example 1
show(inttostr(2/2)) %Displays 1
Example 2
show(floattostr(div(4.7,2.1))) %Displays 2.2381
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()
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.
©2010 Objectif Lune Inc - 272 -