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
Move Stack to a Different Project
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Move Stack to a Different Project
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Move Stack to a Different Project
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
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
-
- Posts: 9
- Joined: Tue Dec 08, 2009 9:51 pm
Re: Move Stack to a Different Project
Thanks for the insight. However, it does not explain how to COPY a substack from one mainstack to another.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Move Stack to a Different Project
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn