Timer contol need help

Started by Marty Francom, October 26, 2009, 06:27:17 PM

Previous topic - Next topic

Marty Francom

I am a little confused on how to use the FF Timer control.

What I want to do is set a timer so that it runs a routine every 10 minutes.

I have the timer control on my FF project but I am unsure how/what code I need to accomplish this.  And where to put it.

(I assume it goes in  "Function FORM1_TIMER1_WM_TIMER" )

Is there a sample program I can look at?  Or, any suggestion would be appreciated.

TechSupport

You are correct to put it in FORM1_TIMER1_WM_TIMER.

In order to set the timer to fire every 10 minutes you simply set the Timer's "Interval" property in the PropertyList. That property is based on milliseconds. 1000 milliseconds = 1 second so therefore 10 minutes = 1000 * 600 seconds = 600000 milliseconds.

(I hope my math is correct)  ;)


Marty Francom

Of coarse... What was I thinking.. I guess I was trying to make it much harder than it is.

Thanks for the help.