Sign in to follow this  
Followers 0
AcidicChip

Exiting another loop?

2 posts in this topic

Okay, I have a GUI, with a "Start" and "Stop" button. When I click on the "Start", it start's a loop. I want the "Stop" button to stop the loop that the "Start" button started. I hope that wasn't too confusing.

Anyway, thanks for your help in advance!

Share this post


Link to post
Share on other sites



Set a global variable like...

$bWantingToStop = 0

In the start loop set a check on the global variable that is preset to 0... like

If $bWantingToStop = 1 Then Return

in the Stop button do this...

$bWantingToStop = 1

Lar.

Thanks... I decided to use a "Do While" using your suggestion.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0