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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Automatically include a Plugin

Post by Klaus »

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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Automatically include a Plugin

Post by Klaus »

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