Create n-instances of main stack

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

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Create n-instances of main stack

Post by ale870 » Fri Aug 14, 2009 4:26 pm

Hello,

I'm creating a special text editor using RunRev, and I created a main stack which acts as the editor window.
Now I wanted to be able to create more instances of this main window (main editor window), so the user will be able to open several editors without launching another executable file.

How can I create more instances of the same main stack? Can I make something like (just for example):

new stack "stackMain"

(but I do not want a new empty stack, I want another instance of the existing stack).

Thank you.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7719
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Post by FourthWorld » Fri Aug 14, 2009 4:47 pm

See the clone command.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Post by ale870 » Fri Aug 14, 2009 4:55 pm

Thank you, I think that is the right command I was looking for!!

whelkybaby
Posts: 47
Joined: Sat Nov 17, 2007 6:04 pm
Location: Worcester, UK

Post by whelkybaby » Fri Aug 14, 2009 9:03 pm

Hi ale870,

I wrote an article on my site a few months back (later published in the Rev newsletter). It might help you with what you're trying to do.

www.theworcestersource.com

There's also a demonstration stack there too.

All the best,

Steve

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Post by ale870 » Fri Aug 14, 2009 10:04 pm

Thank you,
I bookmarked your site!

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”