Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer
Message
De
23/07/2001 16:58:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Timer
Divers
Thread ID:
00534091
Message ID:
00534096
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform