Hi, Barbara,
Will it work faster if:
> nLastPage = 0
> REPORT FORM whatever TO
SCREEN NOCONSOLE
> nLastPage = _PAGENO
>Are you trying to determine if you're at the end of the report in the page footer, header, or somewhere else?
>
>If you're in the footer, you can just check EOF().
>
>If you're somewhere else, you have to run the report twice to determine how many pages there are:
>
> PRIVATE nLastPage
>
> nLastPage = 0
> REPORT FORM whatever TO FILE NOCONSOLE
> nLastPage = _PAGENO
> * At this point, nLastPage has the last page number
> * In the report, you can check if _PAGENO = nLastPage
> REPORT FORM whatever TO PRINT
>
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.