Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to exit from a scan when i am in a Timer object?
Message
From
05/02/2002 07:38:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/02/2002 07:27:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615273
Message ID:
00615355
Views:
14
>perhaps:
>
>
>...
>this.odometer = set("odometer")
>...
>if recno() % this.odometer = 0
>  DoEvents
>endif
>
This is an interesting alternative, since it would make it possible to make global changes. A global variable or property could also be used for this. However, I think it is better to adjust in each case: select a value by trial-and-error, depending on how tight the loop is - for a process that takes several seconds for every record, it might be better to check each and every record.

Also, note Vlad's comment, that the speed problem with DoEvents has been solved in VFP7.

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
Reply
Map
View

Click here to load this message in the networking platform