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

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: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Help! Making a Home Stack

Post by FourthWorld » Tue Dec 03, 2013 11:41 pm

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

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: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Help! Making a Home Stack

Post by FourthWorld » Wed Dec 04, 2013 12:11 am

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

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

can you make stacks that are already main stacks into substacks of another stack?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Help! Making a Home Stack

Post by FourthWorld » Wed Dec 04, 2013 2:13 am

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: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Help! Making a Home Stack

Post by Klaus » Wed Dec 04, 2013 12:40 pm

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: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help! Making a Home Stack

Post by jacque » Wed Dec 04, 2013 8:01 pm

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