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).

Attachment: Test.tar.gz
Description: application/compressed-tar

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to