Althought that will probably work, it really isn't necessary to add it to a form, or screen.
Public MyTimer
MyTimer = CreateObject("cMyTimer")
should also work.
>Anne, something like this works, I do not know if there are some drawbacks though...
>
>
>_screen.AddObject('MyTimer1', 'MyTimer')
>
>define class MyTimer as Timer
> interval = 5000
> enabled = .t.
>
> function timer
> this.Enabled = .F.
> wait window 'Timer Fired' timeout 1
> this.Enabled = .T.
> endfunc
>enddefine
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)