using "preOpenStack" in card script
bobsneidar at iotecdigital.com
Tue Nov 22 22:37:36 CET 2016
put the stuff you would perform in a handler and call that from preopenstack and from your button mouseUp handler.
> 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
> 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?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode