[Gambas-user] DataSource & DataBrowser problem

John Rose john.aaron.rose at ...626...
Fri Feb 3 20:51:53 CET 2012


I've looked at the Database example and I still don't understand how to
use the DataSource & DataBrowser controls. 

My DataSourceCountry control has its Table property set to country (one
of the tables in the Test.db SQLite3 database in the Data directory of
the attached Test project. In the Form_Open procedure, the variable
DatabaseConnection was previously created successfully (i.e. before I
added these 2 controls) and database opened OK. In that procedure, the
Connection property of DataSourceCountry is set to this variable: should
I do that? My DataBrowserCountry control has Columns set to country
(which is one of the columns in the country table, though not the
primary key) and Editable set to True. The project compiles & saves OK. 

When I try to run it, a popup comes up either with 'Null object' or
'Driver name missing'. Any ideas please.  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/x-compressed-tar
Size: 18063 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120203/c0f5e7f5/attachment.bin>


More information about the User mailing list