Endless Looping Chapter 2

Mark Smith mark at maseurope.net
Sat Feb 3 23:48:47 EST 2007


Joe, allowInterrupts is a global (and persistent, I think) property  
of the IDE (which defaults to "true", in 2.7.4 at least).

As long is it is set to "true" you should be able to interrupt a  
runaway loop by holding command - period (Mac) or control - period  
(Windows).

There was a version (2.7.2?) which wrongly defaulted to "false", and  
before I realised what was going on, I just got into the habit of  
putting

if the controlKey is down then exit repeat
inside every loop, until I was sure the loop was ok.

The cmnd/cntrl period should work, though.

Best,

Mark

On 4 Feb 2007, at 04:22, LunchnMeets at aol.com wrote:

>
> In a message dated 2/3/07 3:57:24 PM, LunchnMeets at aol.com writes:
>
>
>> Hi Everyone
>>
>> Is there a way for me to stop a running script that’s caught in an  
>> endless
>> loop so I can fix my scripting error?
>>
>> Joe
>> Orlando, Florida
>>
> I tried “AllowInterrupts” it didn’t allow me to break in, even when  
> I put it
> into the offending handler. The other suggestions assume I know in  
> advance
> which handler will cause a problem. Is there a universal solution I  
> can apply at
> startup to allow me to break a script?
>
> Joe
> Orlando, Florida
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list