AcidicChip Posted November 20, 2005 Share Posted November 20, 2005 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! Link to comment Share on other sites More sharing options...
AcidicChip Posted November 20, 2005 Author Share Posted November 20, 2005 Set a global variable like...$bWantingToStop = 0In the start loop set a check on the global variable that is preset to 0... likeIf $bWantingToStop = 1 Then Returnin the Stop button do this...$bWantingToStop = 1Lar.Thanks... I decided to use a "Do While" using your suggestion. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now