How to store a single button in a rev file

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

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

How to store a single button in a rev file

Post by ale870 » Tue Oct 06, 2009 4:05 pm

Hello,

I'm creating a program which uses external plugins. These plugins are created as "rev" files.
Now I need to load those files at runtime and use them.
My problem is I need to store only Revolution code (events/functions/messages), or small items like a button, and I don't want to create a new stack. Is there any way to store a single button (or only code) in a rev file (I need to load it when the program is running)?

Thank you!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Oct 06, 2009 4:31 pm

Dear ale870,

It is not completely clear to me what you want, but you can copy a button from one stack to another:

copy btn 1 of stack x to stack y

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

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

Post by ale870 » Tue Oct 06, 2009 5:15 pm

Thank you, that could be a good solution.

Thank you!

Philhold
Posts: 64
Joined: Thu Mar 05, 2009 3:39 pm

Post by Philhold » Wed Oct 07, 2009 3:45 pm

From what you have said I would search for "start using" in the dictionary. That lets you start using code and scripts from external library stacks in your main stack.

Of course I don't know how to do anything other than look in the dictionary.

Cheers

Phil

Post Reply