Move Stack to a Different Project

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Move Stack to a Different Project

Post by lohill » Tue Dec 29, 2009 6:42 pm

Is there a way in the IDE to move (or copy) a substack from one project to another project making it a substack there?
Thanks in advance for any help,
Larry

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

Re: Move Stack to a Different Project

Post by FourthWorld » Tue Dec 29, 2009 9:38 pm

You can set the mainstack property of a substack to move it from one stackfile to another.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Move Stack to a Different Project

Post by lohill » Wed Dec 30, 2009 1:27 am

If I have a main stack named "Stack 1" and a sub-stack to it named "Stack 1-Sub 1". I also have a main stack named "Stack 2" with its sub-stack "Stack 2-Sub 1" and I'm in the IDE looking at the four card windows as well as the Application Browser which shows the two stacks with their indented subs, can you outline for me how to 'set the mainstack property" of "Stack 1-Sub 1" so that it becomes a sub-stack to "Stack 2". In the Application Browser this would show "Stack 2" with two indented sub-stacks "Stack 2-Sub 1" and "Stack 1-Sub 1"?

Woa - I just did it and here is the answer to my question. In the application browser bring up the Inspector for the sub-stack "Stack 1-Sub 1". Underneath the fields for Name and Title is a dropdown called "Main Stack". In the dropdown select "Stack 2" and its done.

Thanks for the help FourthWord,
Larry

bobosquish
Posts: 9
Joined: Tue Dec 08, 2009 9:51 pm

Re: Move Stack to a Different Project

Post by bobosquish » Thu Jan 07, 2010 8:16 pm

Thanks for the insight. However, it does not explain how to COPY a substack from one mainstack to another.

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

Re: Move Stack to a Different Project

Post by FourthWorld » Fri Jan 08, 2010 7:53 am

To copy a stack (or any other object) see the clone command.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply