Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Action Every Interval
Message
From
24/04/2002 07:30:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648415
Message ID:
00648558
Views:
16
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform