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.
Livecode skipping on openCard script
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Livecode skipping on openCard script
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Re: Livecode skipping on openCard script
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
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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Livecode skipping on openCard script
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
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
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com