using "preOpenStack" in card script

Bob Sneidar bobsneidar at iotecdigital.com
Tue Nov 22 16:37:36 EST 2016


put the stuff you would perform in a handler and call that from preopenstack and from your button mouseUp handler. 

Bob S


> On Nov 22, 2016, at 13:15 , Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
> 
> if we put
> 
> on preopenStack
> answer "hello" with "OK"
> # do stuff here
> end preopenstack
> 
> 
> into the script of card 1 of a stack
> 
> As a way to encapsulate the preopenstack from the message path
> 
> and you put a button "Run" on the card:
> 
> on mouseUp
>  preopenStack
> end mouseup
> 
> click the button and you get the dialog, but it is immediately followed by a script error with the script editor breaking on the "preopenstack" line of the button
> 
> button "Run": execution error at line 2 (Handler: can't find handler) near "preopenstack", char 1
> 
> What's happening?
> 
> BR
> _______________________________________________
> 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