Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Timer Control
Message
De
20/03/2007 09:49:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01206038
Message ID:
01206041
Vues:
19
>Hi FoxGang!
>
>Question... concerning the Timer control, after the Timer Event fires, does the countdown to the next event firing start immediately, or does it wait to start counting down AFTER the Event has finished it's code?
>
>Thanks!

It depends, i.e. you should design your code assuming the worst case that timer may either start counting when you don't want it, or the opposite: it will not fire when you want it. Basically, the best way to ensure correct functionality is to issue Timer.Enabled=.t. or Timer.Enabled=.f. when you really want to fire or block the timer. If you concerned about timer firing second time before current timer code ended then issue This.Enabled=.f. in the start of the code and This.Enabled=.t. at the end.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform