>- create two variables:
>nLastPage, calculate nothing, initial value 1
>nGValue, calculate nothing, initial value a blank of the same type as your group expression.
>- in group's On Entry expression store the function call, in my case it was ResetP()
>
>resetp.prg:
>
nGroupVal=Int(pk/20)
>If nGValue#nGroupVal
> nGValue=nGroupVal
> nLastPage=_Pageno
>Endif
>Instead of _pageno, print _pageno-nLastPage+1. BUT - it prints fine in group header only. Anywhere else, in page header, page footer, group footer - it behaves as if nLastPage=1. Confuses the hell out of me, and IMO, the internals of Fox reporting engine are more confusing than Hayes modem sequences :).
lol...
I wanted this to print in the page header, instead of the group header. It is possible that my "Page" Group could span more than one page(even though it doesn't in my code example).
Anyway, I appreciate the time you guys have spent on this. I think I'll give up for now.
Paul