Page 1 of 1

Livecode skipping on openCard script

Posted: Thu Jun 27, 2013 3:08 am
by makeshyft
Hi everyone....

For some reason livecode is skipping my on openCard script entirely. The script is simple and has correct syntax.

on openCard
set the disabled of the group "IconsforLoggedinUsers" to false
UMPSay "Welcome back, what would you like to do?",""
end openCard

prior to the go to card statement, it performs a cleanup via a custom command.... it completes properly...... arrives at the go to card statement, goes to the card, but skips the on openCard script.whats going on?

Why in the world is this happening?...please help.

Thank you.

Re: Livecode skipping on openCard script

Posted: Thu Jun 27, 2013 4:49 am
by Simon
Hi Tom,
What happens when you type "openCard" while on that card in the message box?
Have you put breakpoints in that script, to see that it's being skipped?
What happens if you put that script into the cleanup script with:
set the disabled of the group "IconsforLoggedinUsers" of card "myNextCard" to false
etc.

Just for fun what happens if you put that into a preOpenCard handler?



Simon

Re: Livecode skipping on openCard script

Posted: Thu Jun 27, 2013 5:59 am
by makeshyft
from the message box everything works perfectly.

Actually what I did was create a standalone to see what happens there....and the error is experienced totally differently,,,,,, but from that I deducted that the close card script on the original page was interfering ..... so i will rearrange my script to work around this....... but i will investigate some more in case i found a bug.

the close card script is quite simple though....consisting of functions that worked fine and haven't been touched recently......so thats why I want to investigate more.

Thanks for the help I will follow up on this just in case someone else has the same problem.

Cheers