Android Question For-Next-Exit

Giusy

Active Member
Licensed User
Hi,
I have a button called "STOP" when I press it I want to get out of For and Next

Code: Copy
Fox x = 1 to 100
   .....
   .....
???? <----  the button "Stop" has been pressed and then Exit
   .....
next
It will be very simple for you, but I do not know how to intercept the button :(
Thank you
 
also
Code: Copy
For x = 1 to 100
   .....
   .....
   Sleep(1)
   If ExitVariabile=true then X=101
   .....
next
 
Upvote 0
Back
Top