PAGENO()
Syntax
Page_Number as N = PAGENO( [ GRP -> Group_Name as G ] )
Argument | Description |
GRP – >Group_Name | Optional. Group name. |
Description
PAGENO() returns the current page number of a printed layout. If the optional Group Name is specified, the page count will be restarted each time the group repeats.
Supported By
Alpha Five Version 5 and Above
Limitations
Desktop applications only.
Example
To display the number of pages printed for each state in a customer report by the STATE field, place a calculated field that uses the following expression in the Group Page Footer:
pageno(GRP – >STATE) |
To place a page number at the bottom of every page in your report, place a calculated field that uses the following expression in the Report Page Footer:
"Page " + ltrim(str(pageno() )) -> "Page 5", if the current page number is 5. |
See Also