Sannyasin Brahmanathaswami 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?

I dunno. I usually use "dispatch" for sending system messages, but I just tried your recipe in v9.0dp2 and it works as expected.

Maybe a frontScript of behavior in play somewhere?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 ____________________________________________________________________
 ambassa...@fourthworld.com                http://www.FourthWorld.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to