Page

From Free Pascal wiki
Revision as of 21:09, 17 November 2020 by Rfc1394 (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The page procedure is used to tell the system to advance to the next page on that system's output writer. This was generally different from system to system. On IBM mainframes, it meant putting a '1' (the charaqcter of the digit 1) as the first character of the output line. On most ASCII machines, it means generating a form feed character, CHR(12).

The page() procedure thus provided a machine-independent way to advance output to the next page.

Format:

Page(filevar);
where
filevar is the name of an output file, like OUTPUT.

Page should not be used on input files or files not previously opened by rewrite.