Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto starting a foxpro program
Message
De
23/09/1999 21:11:33
 
 
À
23/09/1999 08:20:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00267919
Message ID:
00268332
Vues:
22
>If i wanted to auto kick off a foxpro program say at 2am in the morning??
>How would I do that. Is there third party software avialable???



Add a Timer to check Every Minute, if 2 AM, then Quit...

.Interval = 60000 && 1000 Equals 1 Second
* TmrKickOff.Timer()
lnHours = SET("HOURS")
SET HOURS TO 24

IF HOUR(DATETIME()) = 2
   * Since the Timer check per minute, no need to check the Minute value!
   ON ERROR QUIT 
   For iX = 1 to _SCREEN.FORMCOUNT
      _SCREEN.FORMS(ix).Hide
      _SCREEN.FORMS(ix).Release
   EndFor
ENDIF

SET HOURS TO &lnHours
SET CLASSLIB TO
*... Any Clean up process

CLEAR EVENTS



* For Starting, What you should do is to start the timer!
_SCREEN.AddObject("TmrKickOff1", "TmrKickOff")

*.... do form... etc
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform