Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is 2nd Timer Event possible while in a Timer Event?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00619247
Message ID:
00619299
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform