$HPage

From m204wiki
Revision as of 16:47, 2 January 2014 by JAL (talk | contribs)
Jump to navigation Jump to search

The $HPAGE function returns a string of special characters whose length is equal to the value specified as the $HPAGE argument. $HPAGE is usually used in a line replacing header 0 (see Formatting page headers and trailers). When you use $HPAGE in a SET HEADER or SET TRAILER statement, it is replaced by the current page number when the header or trailer is printed.

Example

This $HPAGE statement:

SET HEADER 1 'AUDIT REPORT' WITH 'PAGE' TO - COLUMN 30 WITH $HPAGE (2) TO COLUMN 33

produces a header in the format:

AUDIT REPORT PAGE 13

The number 13 is generated by Model 204. To set the value of the page number to 0 or another value, use the $SETP function.