using "preOpenStack" in card script

Richard Gaskin ambassador at
Tue Nov 22 16:57:09 EST 2016

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
  Ambassador at      

More information about the Use-livecode mailing list