Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $NEWPAGE

$NEWPAGE
Positions subsequent output to the top of a new page. (C)
Invocation
CALL $NEWPAGE
Usage Notes

Exceptions
 
This exception is raised if the left, center, or right titles overlap, or if the combined length of character strings exceeds width (where width is the page width set by $SETPRINT or $RESETPRINT) or 132, whichever is less.
Example
Displayed Output for NEWPAGE_1
The following rule prints two pages to the message log:

 
NEWPAGE_1;
_
_ -----------------------------------------------------------------------
_ -----------------------------------------------------------+-----------
_ CALL $SETPRINT(10, 70, 1, 'SCR', 'N'); | 1
_ CALL $PRINTLINE( | 2
_ 'THIS IS THE FIRST LINE OF THE FIRST PAGE.'); |
_ CALL $NEWPAGE; | 3
_ CALL $PRINTLINE( | 4
_ 'THIS IS THE FIRST LINE OF THE SECOND PAGE.');
_ -----------------------------------------------------------------------

 
Rule Using $NEWPAGE
Pressing PF2 after executing this rule displays the following screen:

 
------------------------- INFORMATIONAL MESSAGE LOG -----------------
COMMAND ===> SCROLL ===> P
----------------------------- NEW PAGE ------------------------------
Page 1
THIS IS THE FIRST LINE OF THE FIRST PAGE.
----------------------------- NEW PAGE ------------------------------
Page 2
THIS IS THE FIRST LINE OF THE SECOND PAGE.

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved