Automatically include a Plugin

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
Tate83
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 30
Joined: Fri Mar 01, 2013 1:11 am

Automatically include a Plugin

Post by Tate83 » Tue May 28, 2013 5:28 pm

Hi everyone,

I am using Andre's dbLib in my stack.
However, when I open LiveCode I need to manually start aagDbLib in the LC menu and then activate the checkbox to make it actually active.
Is there a way to "include" it in my stack?

I was thinking something like

Code: Select all

  ### Start using DBLIB from Andre Garzia
      try
      start using "aagDBLib.livecode"
   catch n
      put the result && n
   end try
but does not work.. Do I need the full path?

Thanks,
Pascal

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Automatically include a Plugin

Post by Klaus » Tue May 28, 2013 6:43 pm

Hi Pascal,

ye, try with an absolute path!
Or just make the LIB a substack of your stack, easiest solution :-)


Best

Klaus

Tate83
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 30
Joined: Fri Mar 01, 2013 1:11 am

Re: Automatically include a Plugin

Post by Tate83 » Wed May 29, 2013 10:53 am

Hi Klaus,

Thanks, I'll go with substack, should've thought of that. ;-)
So I just copy the whole code or is there a nicer way to import it into a substack?

I cannot do a absolute path without if clauses since I code on win and mac..

Best regards,
Pascal

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Automatically include a Plugin

Post by Klaus » Wed May 29, 2013 11:37 am

Hi Pascal,

just open the LIB stack and set its MAINSTACK to the other stack via the Inspector for this stack.


Best

Klaus

Post Reply