Getting desperate with loops/repeats

Wilhelm Sanke sanke at hrz.uni-kassel.de
Fri Mar 19 12:18:21 EST 2004


On Fri Mar 19, A.C.T. albrecht at act-net.com wrote:

> Hi,
>
> I am getting really desperate trying to find out how Transcript works.
>
> Is there ANY WAY to simply send a break signal to a running script
> inside the IDE? I really hate having to kill the IDE completely using
> the Task Manager just because I cannot get out of a running loop because
> of a function not working as I hoped it would do.
>
> I am trying to port some very simple C-routines to Transcript, which,
> naturally, make heavy use of "while" or "for" loops.
> (snip)
> After having shoot down Revolution about 20 times now just because of
> "trial and error" understanding commands I am ready to accept any help
> you might offer.
>
> Marc Albrecht



Hi Marc,

Would something like this help?
 
"repeat with i = 1 to 750
    if the controlkey is down then  # then exit loop
      exit repeat
    else
      <do your stuff>
    end if
end repeat"

Gruesse,

Wilhelm



More information about the use-livecode mailing list