>>>>BTW, after second thought, your idea would not work.
>>>>Should I explain why?
>>>
>>>Yes, please. I feel something is wrong, but cannot get it without actual testing.
>>
>>Because I also need to print something every time
after the Only first time.
>
>Can it go to the second header?
Can you please elaborate on that because for some reason my idea is not working.
Or may be you can find what's wrong with my implementation of my idea: I added a title to the report, I put _VFP.SetVar('nGroup',0) in its OnEntry.
In the Group Header OnExit I put _VFP.SetVar('nGroup',1) and Group Footer on exit I put _VFP.SetVar('nGroup',0) In my Print When logic I use nGroup = 0.
Still this prints on each page and not only the first time the group starts.
Thanks a lot in advance.
UPDATE. Setting this variable in the Detail on entry solved the problem.
Now I just need to make sure I always print at least one detail line with the group footer(s).
If it's not broken, fix it until it is.
My Blog