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

T Lee Davidson t.lee.davidson at gmail.com
Sun Oct 21 20:47:37 CEST 2018


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


More information about the User mailing list