To add to David's comment...
When the timer() method fires, you should disable the timer before you run your process. This prevents potential problems of the timer firing again while the process is running:
local lnInterval
lnInterval = this.interval
this.interval = 0
this.interval = lnInterval
endproc
>Hi,
>
>I need to write a program that will poll a directory for a specified file. The interval of time to poll the directory is preset. If found the program should process the file. When processing the file, the program should not poll for another file even if it meets the interval of time specified.
>
>I would like to know if there is a foxpro command/control that I can use.
>
>Can I use the timer control?
>
>Thank you very much.
>
>Neetu Kumar
Steve Gibson