Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NT Service
Message
From
21/09/2001 02:51:02
 
 
To
20/09/2001 12:30:13
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Title:
Miscellaneous
Thread ID:
00558722
Message ID:
00559137
Views:
17
Hi!

It is not hard. make a timer class in your application, add it in the startup rpogram to the _Screen object using AddObject method, and then write in the Timer event any code you want to fire periodically to check for something, do some job at some period etc. You can have as many such timers as you need.

We made a generic service that have 2 timers. One timer runs once/second and accepts administrator commands. Another runs each 10-60 seconds and checks the list of tasks in the DBF table. If certain task last time of running is older than current time minus period of time for running that task, process just runs a PRG file for that task. Then you can attach to the automated service as many tasks as you need without even recompiling and stopping of the service ;)

HTH.

>Thanks for the help Vlad. We know have the exe working as a process, but it doesn't seem to be doing anything. Is there anything that needs to be amended within the code to enable it to run as a process?
>
>Thanks
>
>Steve
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform