Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto starting a foxpro program
Message
From
23/09/1999 21:11:33
 
 
To
23/09/1999 08:20:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00267919
Message ID:
00268332
Views:
24
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform