>In vfp6 I have designed a number of reports showing the Page Number with the 'pageno' variable in the report designer field expression builder.
>
>However I want to be able to show "Page x of y" where x = current page and y = total number of pages on the report. I cannot find any such variable?
>
>Any ideas will be gratefully received
>
>Peter
That variable was introduced in VFP8, IIRC. This requires a two-pass process, to count the total number of pages. In previous versions, the workaround is to do the two-pass process yourself. In the first pass, you output the report to a file, and store the number of pages - _pageno, I believe - to a variable. In the second pass, you print the report proper, with this variable.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)