stack handler unavailable from cd script?!

Rob Cozens rcozens at pon.net
Tue Jan 6 08:45:55 EST 2004


>for some reason the card script cannot "see" the stack script! And acts
>like there is no script!
>
>Must I put the card script in the button script?
>
>I have no idea what could be the source of this error!

Hi Eric,

What you are trying to do (or something similar) works for me with no 
problems; so I suspect a syntax error.

If you would publish the text of your button, card, and stack 
handlers, perhaps someone could shed more light.

Something else you could try: open the card script, turn on script 
debug mode, set a breakpoint [click to the left of] on the first line 
of the handler called by the button, then click on the button.  If 
the debug screen doesn't appear, the button script didn't run the 
card script; if it does appear, click on "step into" or "step over" 
and keep clicking after each statement is executed so you can trace 
your handler's progress.  At some point the handler should fail. 
Where it fails may help you understand why it fails [Message & 
Variable Watcher windows may also help].
-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)


More information about the use-livecode mailing list