CodePudding user response:
With a global variablePrivate IsPause As Boolean
In your handler:
Sub Foo ()
While
You every step of the computation
DoEvents
While IsPause
DoEvents
Sleep Sleep under 100 'own add the definition of the API
Wend
Wend
End Foo
Button to continue:
IsPause=False
Button to suspend:
IsPause=True
CodePudding user response:
Sub Foo ()While
You every step of the computation
DoEvents
While IsPause
DoEvents
Sleep Sleep under 100 'own add the definition of the API
Wend
Wend
End the Function
CodePudding user response:
Seems to be some understand ~ thank god I'm gonna study ~ ~CodePudding user response:
Let her sleep isSleep (100)//pause 100 milliseconds