Copying a stack from another stack file

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Copying a stack from another stack file

Post by phaworth »

What is the easiest way to copy a stack from another stack file into the current stack file and make it a substack of the main stack of the current stack file?
Thanks,
Pete
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Copying a stack from another stack file

Post by Mark »

Hi Pete,

Code: Select all

clone stack "Substack" of stack "Mainstack 1"
set the mainstack of it to "Mainstack 2"
Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Re: Copying a stack from another stack file

Post by phaworth »

Thanks Mark, worked perfectly.
Post Reply