return 'Page: '+alltrim(str(_pageno,10))We used a program because we wanted a standard format, and because it was easier to type page() than ,i.'Page: '+alltrim(str(_pageno,10)),/i., and, the main reason, because it is easier to change one program than hundreds of reports, so, recently I've changed the page() program to:
return transform(_PAGENO)+' of '+transform(_pagetotal)Easy it was, but it doesn't work! The _pagetotal is not seen in the report, so the value is not updated, and what we see is something like Page 1 of 1, 2 of 1, ... , 8 of 1...