Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum Timer Length

Status
Not open for further replies.

Bubbler

IS-IT--Management
Dec 14, 2003
135
US
What is the maximum length you can set a Timer for? Is it possible to set it to fire every 12 hours let's say?
 
So 12 hours would be 43200 correct?
 
Nope, each interval is equivalent to 1 millisecond so 12 hours would be 1000 * 60 * 12 = 720000. If you want even hours, set the interval to 60000 and increment a variable in the Sub Timer1_Timer.
 
> increment a variable in the Sub Timer1_Timer.

a static variable is good for this!

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top