Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer Event handling
Message
From
28/09/2012 16:39:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01553855
Message ID:
01553895
Views:
36
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform