Try setting the Interval property to something>0 (the default) and see if it works.
mytimer = CREATEOBJECT('Tmr')
mytimer.INTERVAL = 1000
DEFINE CLASS Tmr as Timer
PROCEDURE TIMER
?"Hello World"
ENDPROC
>Hello,
>I am trying to develop something that runs at intervals using a timer objet. I don't need a form so I'm trying doing this in my program code:
>
>SET CLASSLIB TO CustomClasses
>myTimer = CREATEOBJECT('Timer')
>
>I was expecting the timer to run and the code in it to be executed. However nothing happens. The timer doesn't seem to run at all.
>
>Can anybody please tell me what I've missed here?
>
>
>David