Enform Plus Reference Manual

Clauses
Enform Plus Reference Manual422684-001
5-38
FORM Clause
FORM Clause
The FORM clause allows you to control when to skip to a new page. The syntax of the
FORM clause is:
number
is an unsigned integer.
FORM Clause With a By-Item
When the FORM clause follows a field name that has been grouped with a BY or BY
DESC clause, Enform Plus starts a new page whenever the field value changes. If
number is specified, Enform Plus starts a new page only if there are fewer than that
number of lines remaining on the current page. The following example shows the use of
the FORM clause with a by-item:
BY regnum FORM,
FORM Clause With a Target-Item
When the FORM clause precedes a target-item, Enform Plus starts a new page each
time the target-item is printed. When the FORM clause follows a target-item,
Enform Plus prints the target-item before starting a new page. The number
parameter is not allowed when the FORM clause modifies a target-item.
FORM Clause Within a Print List
The FORM clause can be part of a print list for an AFTER CHANGE, AT START PRINT,
AT END PRINT, BEFORE CHANGE, FOOTING, SUBFOOTING, SUBTITLE, or TITLE
clause or statement. Enform Plus starts printing on a new page every time the FORM
clause is processed. When used with a print list, the FORM clause does not use the
number parameter.
FORM [ number ]