Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is 2nd Timer Event possible while in a Timer Event?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00619247
Message ID:
00619299
Vues:
13
Simon,

The timer event can indeed trigger while you are still handling the timer.

If your code might take longer than the timer.Interval to handle you should code your .Timer() event like:
this.Enabled = .f. && disable timer

... long running code goes here

this.Enabled = .t. && reenable timer
>I read the VFP documentation but I could not tell if the timer event can be trigger while in the timer event or is it disabled until the timer event completes. I am trying to trace down a strange experience where the debugger shows a timer control disabled and the timer event still occuring (There is only one timer on the form).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform