[Gambas-user] DataSource & DataBrowser problem

John Rose john.aaron.rose at ...626...
Sun Feb 5 09:12:39 CET 2012


I found a message from 16 December 2011 re this problem. The author's
solution (author is michael) is:
"keep all Db access in a separate class called "data" which 
handles all communication with the database. I then start my apps with a 
"Main" module not a form. The Main module will load resources (such as 
Db Connector), test the Db connection, check password etc, and only then 
load the first form in the hierarchy.".

When I set my attached Test project to use a module named MDatabase
(PS this is the way I do it in my development project) 
which is called by my Startup module named MMain which
now calls my form named FMain (no longer Startup), 
I got a compile error 'Missing As in line 5'. The module starts with:
' Gambas module file
' 
' 
Dialog.Path = User.Home

Could anyone indicate how a module, specified as Startup, 
should be coded at its start?


PS I've looked at the Example Database project database
but that does not run correctly nor does it show properties of controls
(presumably suppressed due to the project being read-only).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/x-compressed-tar
Size: 18802 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120205/13caca7d/attachment.bin>


More information about the User mailing list