How do you merge stacks

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
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

How do you merge stacks

Post by user#606 » Sun Jul 26, 2009 10:36 am

I wonder if it is possible to merge two stacks into 1?

The current main stack is effectively a series of individual calculators covering such things as Photovoltaic panels, wind turbines, boilers etc.
In themselves, they are self contained, but behind the scene they are interconected where the results affect the outcome of a final detailed specification.
I wish to develop a new section for immediate marketing using Revmedia, but without the main program. Later it will be integrated into the main stack.
Any ideas?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jul 26, 2009 11:30 am

You could make the new stack a substack of you (old) existing (main) stack.
Or did I misunderstand your question?


Best

Klaus

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Post by user#606 » Sun Jul 26, 2009 11:59 am

No, this was not what I meant, but perhaps it is the only way.
I am not clear about the point of sub-stacks and the transfer of data between variables from different stacks. For instance, are global variable in one stack useable in the substack in the normal way i.e. as though they are all in one stack?

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jul 26, 2009 12:12 pm

Yes, global variables are available to ALL open stacks during one "session"!
In fact they are "stack independant".


Best

Klaus

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Post by user#606 » Sun Jul 26, 2009 12:42 pm

Yes, I have just checked this out.
I can see that there is no way to merge stacks into one, because the IS's may clash.
For me, substacks are not an option.
Thankyou so much for your help.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jul 26, 2009 1:43 pm

You could copy all cards from one stack to another!
Kind of "merge for the poor" :-)

Post Reply