[Gambas-user] Use of a Gambas library in a module

Gianluigi bagonergi at gmail.com
Sun Oct 21 22:31:57 CEST 2018


Hans, Lee,
this attached code, here works.

Regards
Gianluigi

Il giorno dom 21 ott 2018 alle ore 20:48 T Lee Davidson <
t.lee.davidson at gmail.com> ha scritto:

> Actually, "/usr/lib/gambas3/" would be the *system* path where all the
> components are stored. You get that particular path
> string with Component.Path.
>
> When you make an executable of a library (in this case resulting in
> "myLibrary.gambas"), a copy is also automatically placed in
> the *user* path:
> <Desktop.DataDir>/gambas3/lib/<vendor_name>/<file_name> (filename in this
> case is "myLibrary:0.0.gambas").
>
>
> ___
> Lee
>
>
> On 10/21/18 10:42 AM, Gianluigi wrote:
> > As suggested by Benoit and Jussi, the Library should be copied inside
> the project, then in Sub Open you writs:
> >
> >   Dim sPath As String
> >   sPath = "/usr/lib/gambas3/myLibrary:0"
> >   Component.Load(sPath)
> >
> > and with help from this lesson [0], completes the project.
> >
> > Regards
> > Gianluigi
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20181021/3c933ec3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myProject-1.2.28.tar.gz
Type: application/gzip
Size: 36372 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20181021/3c933ec3/attachment-0001.gz>


More information about the User mailing list