>Hi Steve,
>
>>I have a monster SCAN loop where I want to report status every n rows. I know I want to do something with MOD() to make this happen, but I can't get the logic in my head. Anyone?
>
>Hilmar already posted the solution regarding MOD(). If your table might contain deleted records and you have SET DELETED ON, than you might prefer to have your own counter variable inside the scan loop, rather than using recno().
Also in some other cases: SET FILTER, SET ORDER.
OTOH, if you SELECT ... INTO CURSOR NOFILTER and then process the result (for a report), none of the above apply.
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)