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

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

Copying a stack from another stack file

Post by phaworth » Sat May 22, 2010 10:53 pm

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 » Sun May 23, 2010 10:21 am

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 » Sun May 23, 2010 10:36 pm

Thanks Mark, worked perfectly.

Post Reply