Adding in a library

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
bcmadore
Posts: 7
Joined: Tue May 24, 2011 5:48 pm
Contact:

Adding in a library

Post by bcmadore » Fri Feb 01, 2013 8:47 pm

I not sure of the correct terminology for this, but I downloaded an SHA-2 library as suggested here: http://forums.runrev.com/viewtopic.php?t=13403

I added it as a substack, but I really want to avoid having to do this every time I use it, especially so I don't get warnings about having multiple stacks with the same name. How do I properly add it so I can access it from multiple stacks?

Can I get rid of the card part of it as well? I just want to access the script of the stack.
Mac OS X 10.5.8 PPC | Mac OS X 10.6/7/8 Intel | LiveCode 5

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Adding in a library

Post by shaosean » Sat Feb 02, 2013 3:07 pm

these two steps are so you can use the commands in the ide while developing your apps without the duplicate stack error
- load the library stack as normal
- start using the library stack

these steps add the library stack to your application for compilation, but you will still need to do the previous two steps for use in the IDE
- go to your stack
- open the "Standalone Application Settings" dialog
- click on the "Stacks" button
- click the "Add Stack File" button
- select the library stack file
- save your stack

bcmadore
Posts: 7
Joined: Tue May 24, 2011 5:48 pm
Contact:

Re: Adding in a library

Post by bcmadore » Mon Feb 04, 2013 7:12 pm

Just to be sure for myself, to use it in the development environment I have to open it and use a "start using" command to put it into the message path?

Is there a way to put it somewhere that it loads every time I start RunRev?

Adding it to the build makes sense.

Thanks.
Mac OS X 10.5.8 PPC | Mac OS X 10.6/7/8 Intel | LiveCode 5

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Adding in a library

Post by shaosean » Tue Feb 05, 2013 6:59 am

You could always make a plugin to load the library automatically..

Post Reply