Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer
Message
From
23/07/2001 16:58:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Timer
Miscellaneous
Thread ID:
00534091
Message ID:
00534096
Views:
21
>Is there a way to have the timer fire at a particular time? For example can I get my timer to start executing code at lets say 10pm every day. My apps will be running 24/7 but I need it to execute certain code only at 10pm.

Sure. Set your timer to fire infrequently (maybe only once a minute, every 5 minutes etc.) In the Timer event, execute code if TIME() > 22:00 (24 hour clock).

You probably also need to set up some custom Form properties that record that the job has been started/completed, otherwise your timer will keep restarting the job.
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