..snip..
Hi Dragan,
I tried putting code in the onexit of a group "_pageno = 0"..but that didn't seem to work. Maybe I can't put the code directly and must call a function?
>
>Here's a cheezy and dirty trick, but might work. Create a report variable nPages, set it to zero, calculate nothing. Write a function, name it, p.e. StoreNPages.prg:
>
nPages=nPages+_pageno
>(yes, a one-liner), and call that function on exit in category group. Instead of _pageno, print nPages+_pageno. That's it.
>
>Or if you are having the oposite problem, that the _pageno is not resetting, and you need it reset, this can work as well, even simpler. Forget the report variable, and just have a function which will set _pageno=0 each time your group exits.