UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

PAGE Syntax PAGE [ON num.expr] [expr] Description The UniBasic PAGE command prints the current output page. UniData prints the page with any specified header or footer. If you do not specify any parameters, the result depends on the last PRINTER command executed: 1-563 UniBasic Commands Reference PRINTER OFF – The new page is generated on the user’s terminal. PRINTER ON – The new page is generated on the system printer. Parameters The following table describes each parameter of the syntax. Parameter Description ON num.expr Specifies the page number of the next output page. Each subsequent page is incremented by one. expr Specifies a target print file for the completed page where num.expr is the number assigned to the file. When you specify a num.expr, the PRINTER command setting is disregarded. For assistance assigning print files, see your system administrator. PAGE Parameters

Examples In the following example, the program statement completes the current page with footings, then advances to a new page. The PRINTER command setting determines where the page is printed. PAGE In the next example, the program statement sends the completed page to the file assigned to print unit 5. If UniData cannot find the print unit specified, the program prints nothing. PAGE ON 5 Related Commands UniBasic PRINTER UniData SETPTR – For information, see the UniData Commands Reference. PAGE 1-564

PAGE<br />

Syntax<br />

PAGE [ON num.expr] [expr]<br />

Description<br />

The <strong>UniBasic</strong> PAGE command prints the current output page. UniData prints the<br />

page with any specified header or footer.<br />

If you do not specify any parameters, the result depends on the last PRINTER<br />

command executed:<br />

1-563 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

PRINTER OFF – The new page is generated on the user’s terminal.<br />

PRINTER ON – The new page is generated on the system printer.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

ON num.expr Specifies the page number of the next output page. Each subsequent<br />

page is incremented by one.<br />

expr Specifies a target print file for the completed page where num.expr is<br />

the number assigned to the file. When you specify a num.expr, the<br />

PRINTER command setting is disregarded.<br />

For assistance assigning print files, see your system administrator.<br />

PAGE Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!