>>>
do while !eof()
>>> lcGroup=CityOrCountyCode
>>> replace next 3 lPrintThis with .t.;
>>> while lcGroup=CityOrCountyCode
>>> count while lcGroup=CityOrCountyCode
>>>enddo
>>>assuming you have them ordered by city/county and top ranked guys first.
>>
>>Yes, Dragan, I was thinking in the same direction. Instead of using CutOff variable in Report, I can use this as a field. Still not clear, how to calculate it, but it could be resolvable. What I wanted to achieve (and fortunately it's not needed yet), it's the minimum modification of the existing reports. They are really complicated and though I can change them using "HACK" method, I prefer not to do it...
>
>You can simply delete the records from the cursor where lPrintThis=.f., and touch nothing in the report.
This report also shows summary using lots of reports varialbes. E.g. Summary for top lenders, summary for lenders, which are not in the top list, and some other totals... So, I can not delete those records... Anyway, right now it's a theoretical question, and I'm glad, it is.
If it's not broken, fix it until it is.
My Blog