>Sorry the full code example is:
>
>
>Public goShutdownTimer
>goShutdownTimer = CreateObject("ctmrshutdown")
>Read Events
>
>Define Class ctmrshutdown as Timer
> iRepeats = 10
> Interval = 500
>
> Procedure Timer()
> This.Enabled = .F.
> ? "ran at",Datetime()
>
> This.iRepeats = This.iRepeats - 1
> If This.iRepeats<0
> Clear Events
> Quit
> EndIf
>
> This.Enabled = .T.
> EndProc
>EndDefine
>
>
>Thanks
>LS
The timer you show is set to fire every half-second and to run 10 times (that's what the loop is about), then shut down. For what you're trying to do, you could just set the timer to go off after 30 minutes by setting Interval to 1800000 (30 * 60 * 1000 milliseconds). But I'm not sure I'd be comfortable doing that with a VFP timer. You might consider using the Windows scheduler instead.
Tamar