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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.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