Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Action Every Interval
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648415
Message ID:
00648546
Views:
14
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().

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform