Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to exit from a scan when i am in a Timer object?
Message
De
05/02/2002 07:38:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/02/2002 07:27:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00615273
Message ID:
00615355
Vues:
15
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform