Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 794

Getting Started with LiveCode - Experienced Developers • Re: Multiple istances of values in a repeat loop

$
0
0
This interesting too (but not solving):

CODE:

local sNumber = 2on mouseUp pMouseButton     put sNumber mod 2 + 1 into sNumber    send "MofifyTheRepeat sNumber" to me in 0 secondsend mouseUpOn MofifyTheRepeat pValue     put 0 into tCounter     repeat 5          add 1 to tCounter          if pValue = 2 then                put "(" & tCounter & ")" & pValue & " " after msg               beep               exit repeat          end if          put "(" & tCounter & ")" & pValue & " " after msg          wait 3 seconds with messages     end repeatend MofifyTheRepeat
So, my point is: how to stop, from a script outside the repeat, ALL instances of a loop? (even exit to top doesn't work).

Statistics: Posted by trevix — Wed Sep 04, 2024 6:16 pm



Viewing all articles
Browse latest Browse all 794

Trending Articles