Difference between revisions of "Page"

From Free Pascal wiki
(new page)
 
(update)
 
Line 1: Line 1:
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 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 character 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.
 
The page() procedure thus provided a machine-independent way to advance output to the next page.
  
 
Format:
 
Format:
  '''Page(''filevar'');'''
+
  '''Page();''' {Older method of calling a procedure with no parameters
: where
+
or
:: ''filevar'' is the name of an output file, like OUTPUT.
+
'''page;'''  
  
Page should not be used on input files or files not previously opened by [[rewrite]].
+
Page will advance OUTPUT to the next page.

Latest revision as of 21:13, 17 November 2020

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 character 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(); {Older method of calling a procedure with no parameters

or

page; 

Page will advance OUTPUT to the next page.