举一个例子,我就是想利用Timer1一到时间,就中断netcheck动作
Timer1.Interval = 500Public Sub netcheck()
For i = 1 to 1000000000000000000
……
Next
End FunctionPrivate Sub Timer1_Timer()
break netcheck
End Sub
Timer1.Interval = 500Public Sub netcheck()
For i = 1 to 1000000000000000000
……
Next
End FunctionPrivate Sub Timer1_Timer()
break netcheck
End Sub
Timer1.Interval = 500
dim bolExit as boolean
bolExit=fasle
Public Sub netcheck()
For i = 1 to 1000000000000000000
if bolexit then exit sub
Next
End FunctionPrivate Sub Timer1_Timer()
bolexit=true
End Sub
dim blnBreak as boolean
Public Sub netcheck()
For i = 1 to 1000000000000000000
if blnBreak then exit for
……
Next
End FunctionPrivate Sub Timer1_Timer()
blnBreak =true
End Sub
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/