Page 1 of 1

Automatically include a Plugin

Posted: Tue May 28, 2013 5:28 pm
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

Re: Automatically include a Plugin

Posted: Tue May 28, 2013 6:43 pm
by Klaus
Hi Pascal,

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


Best

Klaus

Re: Automatically include a Plugin

Posted: Wed May 29, 2013 10:53 am
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

Re: Automatically include a Plugin

Posted: Wed May 29, 2013 11:37 am
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