>If I understand you correctly, I am assuming that you wish to add a timer object when a user clicks on a button. You can do this in this fashion
>
>oTimer = CreateObject("timer")
>WITH oTimer
> Name = "tmrTimer"
> Interval = 10000
> Enabled = .T.
>ENDWITH
Juan, you need to prefix the referenced objects with '.' to make VFP aware that they're property/method refs. The example should read:
oTimer = CreateObject("timer")
WITH oTimer
.Name = "tmrTimer"
.Interval = 10000
.Enabled = .T.
ENDWITH