Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer Question for today
Message
 
À
08/10/2012 14:37:56
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:
01554503
Message ID:
01554527
Vues:
44
>>>>Hi Gang!
>>>>
>>>>A timer question...........
>>>>
>>>>I have a method that is called from a Timer.... tmrKeepChecking
>>>>
>>>>tmrKeepChecking.Enabled = .T.
>>>>tmrKeepChecking.Timer = 30000
>>>>
>>>>
>>>>When I go into the method, I set tmrKeepChecking.Timer = 0
>>>>
>>>>and process some code.
>>>>
>>>>When I exit the method, I set tmrKeepchecking.Timer = 30000
>>>>
>>>>But the method is never called again.... the timer refused to fire.
>>>>
>>>>Am I doing something wrong here?? Thanks!
>>>
>>>I agree with Craig. but also include a this.reset()
>>>
>>>
>>>procedure Timer
>>>    this.Enable = .F.
>>>    *-- code
>>>    this.Reset()
>>>    this.Enable = .T.
>>>endproc
>>>
>>
>>Thanks!
>
>Also, check out cppTimer.fll @ http://www.bbcontrols.com/fll.shtml
>
>It uses the system form of timer, not the foxpro internal timer. Somewhere, if I recall right, that foxpro's Timers are suspend if foxpro losses focus.

Thanks!
Tommy Tillman A+ NetWork+ MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform