[Gambas-user] Database connection with gb.db.form method

Gianluigi bagonergi at gmail.com
Tue Jul 16 11:10:43 CEST 2019


Hi Hans,
thanks for the help but unfortunately I always get error:
See attached image.
I tried to connect to your test database, these are my passages.

FMain properties:
Arrangement = Vertical

DataSource1 properties:
Arrangement = Vertical
Connection = Connection1
Expand = True
Table = mausi

DataBrowser1 properties:
Columns id (table with one column)
Editable = True
Expand = True

FMain.class code:
Public Sub Form_Open()
  Connections["Connection1"].Open
End

Public Sub Form_Close()
  Connections["Connection1"].Close
End

Components:
gb
gb.db
gb.db.form
gb.form
gb.gui (or gb.gui.qt)
gb.image
I try also with adding gb.db.sqlite3

Regards
Gianluigi

Il giorno lun 15 lug 2019 alle ore 23:37 Gianluigi <bagonergi at gmail.com> ha
scritto:

> Hi,
> I can't get the connection through only the graphic of the gb.db.form
> component.
> See attached project.
>
> In a Balloon on Debug Common.CheckDB.34 I get:
> Unable to locate database 'test' in '~/database'
>
> Am I wrong with the settings or is it a bug?
>
> Regards
> Gianluigi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190716/02e97177/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connection1.png
Type: image/png
Size: 52045 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190716/02e97177/attachment-0001.png>


More information about the User mailing list