Combining Stacks / Copy and Paste

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
joran
Posts: 20
Joined: Fri May 13, 2016 1:00 pm

Combining Stacks / Copy and Paste

Post by joran » Sat May 21, 2016 11:55 am

Is there a way to start a sort of complex app building procedure by "module programming".

- - Module=small specialised Standalone apps or just LiveCode in Cards or Stacks that can be put together to create even more potent applications.

Let's say I build different functions in small modules and as time progress bring these modules together by copy and past, Stacks or just Cards.

At the core am wondering if it is any benefits to Copy and Paste, or build as mentioned above.


// Joran

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Combining Stacks / Copy and Paste

Post by Mikey » Sat May 21, 2016 2:27 pm

The easiest way to do this is to use substacks, but you can also copy/paste cards.

Even though the interface for substacking is confusing, when you make one stack into a substack of another, you are actually making a copy of the stack a substack of another.

Stacks A, and B, both in memory at the same time

In B's stack settings, where you see "Substack of", select "A". B will still be a standalone stack, but it will also be copied to A as a substack.
Read up on substacks/the message path/etc., so you understand the precedence of messages. Also read up on behaviors.

joran
Posts: 20
Joined: Fri May 13, 2016 1:00 pm

Re: Combining Stacks / Copy and Paste

Post by joran » Sat May 21, 2016 4:14 pm

ok, i'll follow your advise.

And thank you so much for you quick answer, this forum is really great for a newbie as me.

I'll also not try to overload it with questions that there are already answers for in various other sources within the LC community :-)

// Joran

Post Reply