Print Newpage: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
Line 13: Line 13:


===Syntax===
===Syntax===
PRINT [#<file number>:] NEWPAGE
PRINT [#<file number>:] NEWPAGE
[[file:Printnewpage.png]]
[[file:Printnewpage.png]]



Revision as of 16:49, 28 April 2014

The Print NewPage statement is useful to clear the GUI Console, the command console or a window. When output to a display file with Print, the NewPage internal function no longer sends a carriage return. It's highly recommended to include a PRINT NEWPAGE statement before different sections of your program to ensure that previous data does not affect the screen display.

Comments and Examples

In the following example, the NEWPAGE keyword clears the screen (line 150) and advances the printer to the top of a page (line 160):

00150 PRINT NEWPAGE
00160 PRINT #255: NEWPAGE

A PRINT #file-num: NEWPAGE statement must be specified to reset the PAGEOFLOW counter to zero, not doing so can result in error 0701.

NEWPAGE can be combined with other items on a PRINT statement when separated by commas or semicolons.

A PRINT NEWPAGE will count for one column on the screen or printer output when combined on a line with other data.

Syntax

PRINT [#<file number>:] NEWPAGE