[Gambas-user] DataControl and "No current Connection" Error
Mathias Ebermann
math.eber at ...221...
Sun Aug 30 13:24:02 CEST 2009
Ah, now I understand. Thanks!
It's explained in your help file gb.db/Connection.
Didn't see that before.
Benoît Minisini schrieb:
>> Thanks, Benoit.
>>
>> But the database connection IS open, that's why I am confused.
>>
>> DataSource reads the table, and DataBrowser shows the data in the columns I
>> set in properties. So, the connection seems to be not the problem.
>> The only things that don't work are the DataControls. They always produce
>> this "No current Connection".
>>
>> Or am I completely wrong??
>> I open the database connection in the PUBLIC SUB Form_Open(), first thing.
>> That's the earliest point I can imagine.
>
> You must open it before showing the form. Either you reimplement the public
> static Main function in your startup form, either you create a startup module
> for that.
>
> Regards,
>
More information about the User
mailing list