> Hi, > new in Gambas, I encountered the following problem: > > I have a DataSource and a DataBrowser and managed to display the data fine. > > Now, I wanted to display details of the data in several DataControls. > If I fill the "Field" property of the DataControls (e.g. Artikel), I get an > Error Message "No Current Connection", right at the start of the program. > Nothing runs. > If I leave the "Field" property empty, the program runs. But, of course, > the DataControls are empty. > > After a lot trial and error I found out, that doing the same thing in code > DataControl1.Field = "Artikel" > works. This way, everything works fine. > > I wonder why the "normal" way (like in the Gambas example) produces this > error? And why does the "code" way work? >
You must open a database connection before doing anything else. Regards, -- Benoît ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user