>Opps! Forgot to mention that the code is in the first timers Timer event.
>
>>Hi,
>>
>>I would like to have a timer within a timer. Here is the code I've tried so far:
>>
>>*do some stuff
>>oTimer = createobject("timer")
>>WITH oTimer
>> .interval = 5000
>>endwith
>>* how to make oTimer start?
>>* do some more stuff
>>
>>
>>I was playing with the inkey command for a while. The reason why this wouldn't work is that there is a stop button on the form. When I click the stop button I set the first timer.enabled to false. (hopefully this would also stop oTimer)
>>
>>Any ideas?
>>
>>Thanks,
>>Chris
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?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca