[Gambas-user] Problems with setting and using Connections in IDE

T Lee Davidson t.lee.davidson at gmail.com
Fri Apr 24 22:49:29 CEST 2020


On 4/24/20 2:03 PM, Gianluigi wrote:
> I'm not sure but I believe that if the SQLite database is not inside the project then it must be specified in the opening code 
> like the others:
> 
>    Connections["Connection1"].Type = "sqlite3"
>    Connections["Connection1"].Host = "/path/of/database"
>    Connections["Connection1"].Name = "test"
>    $hConn = Connections["Connection1"]
> 
> of course for MySQL it is necessary to add:
> 
>    Connections["Connection1"].Login
>    Connections["Connection1"].Password
>    Connections["Connection1"].Port
> 
> Regards
> Gianluigi

Thanks for the response, Gianluigi.

But, I don't understand why I can set up the Connections and view the data in the IDE, yet the program chokes on them when it runs.

What use is setting up Connections in the IDE if I have to set them up in code anyway?


-- 
Lee


More information about the User mailing list