Page 1 of 1

Help! Making a Home Stack

Posted: Tue Dec 03, 2013 11:34 pm
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

Re: Help! Making a Home Stack

Posted: Tue Dec 03, 2013 11:41 pm
by FourthWorld
What does the code in those buttons look like, and where are the stacks you want that code to open?

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 12:03 am
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

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 12:11 am
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?

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 12:18 am
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

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 12:34 am
by hands16
can you make stacks that are already main stacks into substacks of another stack?

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 2:13 am
by FourthWorld
Yep:

set the mainstack of stack "SomeStackName" to "NameOfYourOtherMainstack"

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 12:40 pm
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

Re: Help! Making a Home Stack

Posted: Wed Dec 04, 2013 8:01 pm
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. ;)