changing first to open, card....SOLVED

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9582
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: changing first to open, card....SOLVED

Post by dunbarx » Fri Apr 09, 2021 8:17 pm

- stack has 6 digit ID
- cards have 5 digits ID
My stacks cards and controls (on a Mac) are all four-digit. I do have a stack that is the core of a long term project that is five digits (25762). Not sure how it got there, since that is far above the number of cards and controls in all the stack files in the project.

It is only important to know about these, not what their values mean. You cannot trust any order with ID's, unlike the number property, where order is often very useful and important.

That is why is doesn't matter. :wink:

Craig

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: changing first to open, card....SOLVED

Post by andresdt » Fri Apr 09, 2021 8:36 pm

liveme wrote:
Fri Apr 09, 2021 7:57 pm
correct :
- stack has 6 digit ID
- cards have 5 digits ID
- I dont mess with IDs so have no idea if they should be 1 or a zillion digit long...

BTW, I still dont know where is that "famous card number" (window setting) one can change....noone explained this so far !
I just moved the card UP, and that's it.

tks
Look up the word "number" in the livecode dictionary. A function and a property appear.
This property is what indicates what number the card is in this case. The number is like the layer of the card within the stack.
so with any of these codes you will get the same result.

Code: Select all

set the number of card "MyCard" to 1
set the layer of card "MyCard" to 1
When the batteries have no title. They show the name and in parentheses the number of the current card. In addition, in the properties inspector, in the Position section for the cards, the last property is Layer. Which in this case is equal to the number.

liveme
Posts: 240
Joined: Thu Aug 27, 2015 5:22 pm
Location: down under

Re: changing first to open, card....SOLVED

Post by liveme » Sat Apr 10, 2021 12:52 am

I did it the Bogs'way :
you can also just drag the desired card to the order you want it in the project browser.
which seems tp work so far (I had tried this previously but was not grabbing the card correctly it seems.) so I went on to posting here. :idea:

Should I understand that changing a Card Number can only be done using LC code ?
*I thought you could open a menu/option an overwritte whatever number was in...
All my cards use "text names", no "number names"...

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: changing first to open, card....SOLVED

Post by andresdt » Sat Apr 10, 2021 12:59 am

Should I understand that changing a Card Number can only be done using LC code ?
*I thought you could open a menu/option an overwritte whatever number was in...
Yes you can!! In the Property inspector. Change that number and you will change the order of the card
All my cards use "text names", no "number names"...
number and layer are properties of all objects in a stack.
Attachments
numbCard.png
Last edited by andresdt on Sat Apr 10, 2021 1:05 am, edited 1 time in total.

liveme
Posts: 240
Joined: Thu Aug 27, 2015 5:22 pm
Location: down under

Re: changing first to open, card....SOLVED

Post by liveme » Sat Apr 10, 2021 1:05 am

Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhh !!!
:lol:
finally !
Tks andre...;U made my day !
:D

EDIT : So this has the same effect as to moving any Cards Up or Down,
it'll also update the "layer" number to the actual Number.
Done ! :idea:

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: changing first to open, card....SOLVED

Post by bogs » Sat Apr 10, 2021 12:22 pm

liveme wrote:
Sat Apr 10, 2021 1:05 am
So this has the same effect as to moving any Cards Up or Down,
it'll also update the "layer" number to the actual Number.
For anything not a stack, every way told to you here will do that. My contribution is just the laziest and easiest way to accomplish it, because I am the laziest and cheesiest here :P
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”