Weird button behavior

J. Landman Gay jacque at hyperactivesw.com
Sat Feb 5 17:36:26 EST 2011


On 2/4/11 7:39 PM, Peter Haworth wrote:
> Strange thing happening, actually not happening, when I click on a
> button in a modal dialog window.  I have a mouseUp handler for the
> button with a few lines of code ending with a close this stack
> statement.  The stack closes but setting break points shows that
> neither the close statement nor any of the other statements in the
> handler are executed, neither is any of the code in the script that
> opened the modal dialog.
>
> If I open the card from the Application browser so (it's not modal),
> when I click the button, all the code is executed.
>
> Can anyone suggest what might be causing this?

I think your script is running normally, unless you have symptoms you 
haven't mentioned. Debugging a modal window doesn't always work. You'll 
get varying results. Instead of setting a breakpoint, put some info into 
the message box temporarily so you can see which lines of script are 
running. Since the window does close as directed, I'm betting the rest 
of the lines of script are also running.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list