Thanks for the reply Gerald. I am working on a program that copies files from a specified directory into a table. Every 5 seconds we check if there are appropriate files in the specified directory. (using adir command) If there is then we copy the files to the table. But before that we have to wait another 5 seconds because its possible that the file is there but it is not complete. I actually asked my boss the exact same question.
For some reason, I still can't get it to work. Here is the code. If start a blank form with a timer control and put this in the timer event you'll see what I mean.
MESSAGEBOX('before second timer')
oTimer = createobject("timer")
WITH oTimer
.interval = 5000
.enabled = .t.
endwith
MESSAGEBOX('after second timer')
>To start the timer just enable it:
>
> .enabled=.T.
>
>But, why do you want to create a new timer
>each time a timer event hit?