On Tue, 7 Feb 2006 15:21:54 -0600 (CST), Luis Carlos D'az Otero
<lucadiote@yahoo.com> wrote:
>Is there a way in 4GL, to get the total number of pages a report has?
> I get the current page number: PAGENO , but i need to print, on every page its length in pages.
>
>
> i.e.
>
> ....
> ...
> ...
> PAGE HEADER
> PRINT "Page No. ",PAGENO," of ",Total_number_of_pages
> ...
> ...
> ...
>
> Thanks a lot
>
I've tried this before, but don't remember if it worked . . . and it
took a UNIX command at the end . . . . had to use a placeholder . . .
for each page header . . .
print "Page ", PAGENO, " of TOTAL_PAGES"
then at the end of the program . . . .
find the last page number
replace TOTAL_PAGES with this number in the report
Rough sketch . . ..
HTH
JWC