Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Event handling
Message
De
28/09/2012 16:39:20
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01553855
Message ID:
01553895
Vues:
38
>Hi Gang!
>
>Question....
>
>I thought that when you entered a Timer Event, you set the Interval = 0, to shut it down so it won't fire again....
>
>then when you exit it, you reset the Timer.Interval = original value that it had to start with.
>
>
>Is this correct?

That might work, but IMO the correct way is as Borislav suggests, set .Enabled = .F. as the very first line of the timer event. And .Enabled = .T. as the very last line, assuming you want it to fire again.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform