How to stop ?
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
Hi I have a problem in visual basic 6. I want to stop a sequence of program (Loop) using a button clik (Externally) thanx in advance by KK
-
Hi I have a problem in visual basic 6. I want to stop a sequence of program (Loop) using a button clik (Externally) thanx in advance by KK
If you state more specific questions you probably get more replies. Anyway if you mean how to interrupt a loop from outside in VB6 this a way: Declare a global variable like
Alive
as boolean Your loop will be:Alive=True
While Alive
(...)
DoEvents
End WhileIn your button event:
Alive=False
That's it.