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.comICQ #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.