Issuing new page if insufficient lines remainΒΆ

need

Issue new page if insufficient lines remain


SYNTAX

need numeric_expression

Check the number of lines left on the current page (excluding those reserved for footnotes) and execute a new page if this value is less than the number specified in numeric_expression. All !footnote statements are issued at the bottom of the current page in their usual position, and all !heading statements are issued at the beginning of the new page.

The number of lines left is calculated by subtracting sys.FootLines from sys.LinesLeft.

The need command can be used to ensure that a block of lines are all printed on the same page, or that the processing of a new record does not start near the bottom of a page.

Under Windows, text at the bottom of the page can be lost if the need command is not called at the correct time. To prevent this, set Section 2, Entry 3 of the printer parameter file (Print overflow text on next page) to Y.


EXAMPLE

!on starting Purchase.ordno {
     need 12
}

RELATED TOPICS

Reports