PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marty Francom on October 26, 2009, 06:27:17 PM

Title: Timer contol need help
Post by: Marty Francom on October 26, 2009, 06:27:17 PM
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.
Title: Re: Timer contol need help
Post by: TechSupport on October 26, 2009, 07:43:43 PM
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)  ;)

Title: Re: Timer contol need help
Post by: Marty Francom on October 26, 2009, 10:15:30 PM
Of coarse... What was I thinking.. I guess I was trying to make it much harder than it is.

Thanks for the help.