Livecode skipping on openCard script

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Livecode skipping on openCard script

Post by makeshyft » Thu Jun 27, 2013 3:08 am

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.
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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Livecode skipping on openCard script

Post by Simon » Thu Jun 27, 2013 4:49 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Re: Livecode skipping on openCard script

Post by makeshyft » Thu Jun 27, 2013 5:59 am

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
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

Post Reply