PAGENUM
The PAGENUM function is a Report Writer function that returns the current
page number. The page number is set to 1 when a report is activated.
You can reset this value with the SET PAGENUM statement. If no report is
active, -1 is returned.
Syntax
PAGENUM
Example
100 Cpage = PAGENUM !Cpage receives the current page number