interrupting a repeat loop
Tim Selander
selander at tkf.att.ne.jp
Tue Dec 15 10:40:21 EST 2009
Works great; that's just the thing I was looking for!
Thank you.
Tim Selander
Tokyo, Japan
Jacques Hausser wrote:
> Hi Tim
>
> it depends of the kind of loop you are using. Several possibilities For example in a card script:
>
> local stoploop
>
> command runTheLoop
> repeat forever
> if stoploop = "S" then exit repeat
> -- do what you want
> wait 10 milliseconds with message
> end repeat
> end runTheLoop
>
> on keyDown thekey
> put thekey into stoploop
> end keydown
>
> The "wait x milliseconds with message" is the important trick here.
>
> Jacques
>
> Le 15 déc. 2009 à 15:37, Tim Selander a écrit :
>
>>
More information about the use-livecode
mailing list