Have a form with two button, when i click on start button the resumable sub start, but if i click on stop button how i do for stopping the resumable sub ?
Sub ThisIsAResumableSub
Dim MyIndex As Int = WorkIndex 'process global variable
Do While True
'do something
Sleep(...)
If MyIndex <> WorkIndex Then Exit
Loop
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.