$HPage

From m204wiki
Revision as of 18:07, 21 July 2014 by Mlarocca (talk | contribs) (Mlarocca moved page $HPAGE to $HPage: Lower case change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.