# Re: About Timer Control ...

Posted by 纪文和 on July 10, 1998 at 19:04:26:

In Reply to: About Timer Control ... posted by kingkong on July 10, 1998 at 11:47:23:

: Timer Control's Interval is less than 60000 (1 minute), but , i want it interrupt every 2 minutes (or longger) , how can i do ?

既然最大值是 60000, 那就用 60000啊!(=1分钟)
'gstart 是一个global变数,记录上一次起始时间,在起动后直接设成Now
gstart=Now
'gtime 是一个global变数,设定时间长度,此范例以分为单位

Private Sub Timer1_Timer()
If DateDiff("n", gstart, Now) >= gtime Then
程式码......
End If
End Sub

Follow Ups: