export substack from one stack and import into another

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

export substack from one stack and import into another

Post by Nakia » Thu Aug 08, 2013 1:24 am

Hi,

I have a calendarWidget substack that is contained in one of my other current projects stacks.
How can I export that substack out as its own stack and then import into another stack as a substack?

Thanks

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10058
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: export substack from one stack and import into another

Post by FourthWorld » Thu Aug 08, 2013 1:36 am

You can set the mainstack property of a substack to the name of another mainstack and it'll copy the substack to that mainstack's stack file.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: export substack from one stack and import into another

Post by Nakia » Thu Aug 08, 2013 2:11 am

Thankyou very much...

Post Reply