[Gambas-user] Problems with setting and using Connections in IDE

Bruce adamnt42 at gmail.com
Sat Apr 25 07:38:32 CEST 2020


INLINE

On 25/4/20 2:22 pm, T Lee Davidson wrote:
> On 4/24/20 7:41 PM, Bruce wrote:
>>
>> How are you trying to open the connection in your code?
>>
> 
> I am not trying to open the connection in the code. FMain.form has only 
> two components: a DataSource and a DataView. FMain.class is totally empty.

Well, I just tried that here and it works perfectly. No code whatsoever 
and the data just pops straight up.
> 
> In the IDE, I set the DataSource1 .Connection and .Table properties 
> appropriately, and the set .Columns in DataView1. I click the Run button 
> and the program apparently tries to open the specified connection 
> automatically; and fails with the errors I reported.
Well well, another day another thing learned! For years I have been 
setting up the declaratives in the form designer but thought that I 
still had to open the connection in the form code!
> 
> Isn't the purpose of the IDE Connection tool to define connections so it 
> doesn't have to be done in code?
> 
Apparently so since it works perfectly here


???
bruce


More information about the User mailing list