HP 3000 Manuals

SET PAGENUM [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

SET PAGENUM 

The SET PAGENUM statement allows you to change the page number maintained
by the Report Writer.  The page number available through the PAGENUM
built-in function is affected.  This statement can appear anywhere in the
subunit containing the report description.

Syntax 

            [TO]
SET PAGENUM [, ] page_expr 
            [; ]

Parameters 

page_expr        A numeric expression.  Its value must be a non-negative
                 number in the INTEGER range.

Examples 

     100 SET PAGENUM TO Last_page + 3  !Pagenumber is 3 greater than the
     101                               !number in Last_page
     100 SET PAGENUM TO 0              !Pagenumber is 0

The Report Writer maintains a page number for use by the user.  The
PAGENUM built-in function returns this page number.  The page number can
be changed at any time using the SET PAGENUM statement.  This allows the
addition of pages from other sources in a printed report.

The page number can be set to zero, which is particularly useful for
reports with a report header on a page by itself.  Negative page numbers
are not allowed.

The page number does not affect the SUPPRESS FOR statement, which
suppresses report output.  The count of page breaks is distinct from the
page number count kept by the report writer.



MPE/iX 5.0 Documentation