Page_Number as N = PAGENO( [ GRP -> Group_Name as G ] )
GRP – >Group_Name
Optional. Group name.
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.
Alpha Five Version 5 and Above
Desktop applications only.
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.
Report Functions and Methods