$HPage: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
mNo edit summary
Line 1: Line 1:
<p>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 [[Report Generation#Formatting page headers and trailers|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. </p>
<p>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 [[Report generation#Formatting page headers and trailers|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. </p>
<b>Example</b>
<b>Example</b>
<p>This $HPAGE statement:  </p>
<p>This $HPAGE statement:  </p>

Revision as of 16:47, 2 January 2014

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.