Stopping a script

Mike Bonner bonnmike at gmail.com
Wed Jun 29 13:28:05 EDT 2016


As you discovered, you can. With exit.  YOu can exit a handler, exit a
repeat, exit to top..

Care should be used with exit to top, depending on what you want to do.

If you have a handler that calls another handler and you "exit to top" from
the second handler, the first handler also exits.  (So, for example.. if
you have a gameloop that calls a series of handlers and one of them exits
to top it might (should) kill your game loop.. IF thats what you want,
great! If not, just exit from the current handler instead.  )

On Wed, Jun 29, 2016 at 11:09 AM, Richmond <richmondmathewson at gmail.com>
wrote:

> Um: "You're trying to execute a terminator." I'll avoid the off-colour
> remarks about
> the Styrian bodybuilder and what he did to Tookie Williams.
>
> Why can one not 'call' a terminator in Livecode? Rather like one can use
> *break* in a *switch* statement.
>
> Richmond.
>
>
> On 29.06.2016 20:03, J. Landman Gay wrote:
>
>> You can only send or call handler names. The "end" statement simply
>> designates where the handler ends, much like the period at the end of a
>> sentence. You're trying to execute a terminator.
>>
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
>>
>>
>>
>> On June 29, 2016 11:15:20 AM Richmond <richmondmathewson at gmail.com>
>> wrote:
>>
>> Maybe I'm just being a bit simplistic, BUT what is wrong with
>>> having a button containing this script:
>>>
>>> on mouseUp
>>>     send "end mouseUp' to button "XYZ"
>>> end mouseUp
>>>
>>> this generates an error message:
>>>
>>>   (Handler: can't find handler) near "end"
>>>
>>> ?
>>>
>>> Richmond.
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list