Stack Organization

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

Stack Organization

Post by lohill » Sat Dec 22, 2012 5:32 pm

I have been working on a program that consists of main stack A and substacks B, C and D. I have decided that I want to make stack C the mains stack and relegate stack A to a substack status. Is there an easy way to do that?

Thanks in advance,
Larry

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Stack Organization

Post by sturgis » Sat Dec 22, 2012 5:52 pm

Set stack C mainstack to itself in the property inspector.

Set the mainstack of stacks b and d to stack c
set the mainstack of stack a to stack c

Save stack c.

Or do it in the message box

set the mainstack of stack "c" to "c"
set the mainstack of stack "b" to "c"
set the mainstack of stack "d" to "c"
set the mainstack of stack "a" to "c"
save stack "c"

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

Re: Stack Organization

Post by lohill » Sat Dec 22, 2012 6:59 pm

Thanks sturgis,

You saved me a lot of work and worry.

Larry

Post Reply