Card objects not showing again

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
EvelynZ
Posts: 2
Joined: Tue Dec 31, 2013 7:51 am

Card objects not showing again

Post by EvelynZ » Tue Dec 31, 2013 8:01 am

I have what seems to be a simple problem but I can't figure out what's wrong. I've been doing the idea2App lessons but Elanor doesn't have this problem !

When I go into Run mode, my navigation buttons work fine - I go to each card and the title changes. But when I go back to the first card that has buttons, text boxes, etc., these objects don't show back up - the card is blank! Help :cry:

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

Re: Card objects not showing again

Post by Simon » Tue Dec 31, 2013 9:06 am

Hi EvelynZ,
Welcome to the forums :)

idea2App is paid for so not sure how many people know what your scripts look like or should look like.

Just as a guess, I'm thinking you are not navigating to the card you think you are, maybe you added an extra card by accident?
Well to find out just do ctrl+shift+c while displaying the blank card, that will show you the card script of that card. At the top of the script editor you can see the card ID. Is it the same as the card you expected to go to?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: Card objects not showing again

Post by dunbarx » Tue Dec 31, 2013 2:49 pm

Hi.

Sort in line with what Simon suggested, put this in your stack script:

Code: Select all

on opencard
put the number of this card
end opencard
In the message box, you will see the current card number each time you navigate from one to another. Now, is that "blank" card really the one you think?

Craig Newman

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Card objects not showing again

Post by dave.kilroy » Tue Dec 31, 2013 4:58 pm

Hi EvlynZ

There is another way you can check the number of cards in your app without writing any code: In the IDE press cmd + 3 to cycle through the cards in your app (this is on a mac, on a Win machine use ctrl + 3). If you have the inspector open at the same time showing a card in your app, as you cycle through the cards you can see the changes in the inspector (unless you locked it first...)

Also and as well, you could always have a look in the project browser (you can find it in the Tools menu).
Dave
"...this is not the code you are looking for..."

EvelynZ
Posts: 2
Joined: Tue Dec 31, 2013 7:51 am

Re: Card objects not showing again

Post by EvelynZ » Tue Dec 31, 2013 5:28 pm

Thanks much for the replies. Something very strange was going on with my app last night, so I just deleted the whole navigation system, rebuilt it, and voila, working OK now. Happy New Year :P

Post Reply