Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Timer Control
Message
From
20/03/2007 09:49:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01206038
Message ID:
01206041
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform