Help! Making a Home Stack

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
hands16
Posts: 17
Joined: Sat Oct 19, 2013 2:23 am

Help! Making a Home Stack

Post by hands16 »

I recently made a "home stack" with a button for each additional stack that i have made. but the only way the buttons for the stacks will work is if i open the stack first. if i just open the home stack only and press the button it wont respond like it should. Any suggestions i could really use the help thank you
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Help! Making a Home Stack

Post by FourthWorld »

What does the code in those buttons look like, and where are the stacks you want that code to open?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
hands16
Posts: 17
Joined: Sat Oct 19, 2013 2:23 am

Re: Help! Making a Home Stack

Post by hands16 »

all of the stacks i want to open are on my computer. in the script i just say go stack "hall books" or something like that. it always will go to the stack but only if i open it first and it will still go to stack once i close the stack i opened but i always just have to open it first
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Help! Making a Home Stack

Post by FourthWorld »

Are the other stack files in the same folder as the one with the buttons? Do they need to be separate files, or could you make them substacks of your "Home" stack?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
hands16
Posts: 17
Joined: Sat Oct 19, 2013 2:23 am

Re: Help! Making a Home Stack

Post by hands16 »

i could try making all my stacks, substacks of the home stack, and yes all of my stacks are in the same folder
hands16
Posts: 17
Joined: Sat Oct 19, 2013 2:23 am

Re: Help! Making a Home Stack

Post by hands16 »

can you make stacks that are already main stacks into substacks of another stack?
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Help! Making a Home Stack

Post by FourthWorld »

Yep:

set the mainstack of stack "SomeStackName" to "NameOfYourOtherMainstack"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Help! Making a Home Stack

Post by Klaus »

Hi Hands16,

you might want to work through these stacks to get the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help! Making a Home Stack

Post by jacque »

The script will look for the stacks in the current default folder. You can either set the default folder before trying to go to a stack, or you can just refer to the stack with a full file path like this:

go stack "/Users/me/folder/hall books.livecode"

Unless you change it, the default folder is the same one containing the LiveCode app. I'm pretty sure your stacks aren't located there. ;)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply