[Gambas-user] Connecting DataControl to DataSource
Lewis Balentine
lewis at ...3412...
Tue Jan 6 07:28:07 CET 2015
YEP --- that was the problem. I completely missed "is a container". In
MS VB5/6 you only needed to place the Datasources on the same form ....
actually not even that: you could build a connection or selection set
and reference that.
One thing I would like to see is the ability to return the SQL Query
actually used to obtain the "Result". This would be very helpful when
trying to figure out why something did not work like one expected it to.
I have used the "Subst" function to build such a string but there is
always the nagging doubt that it is not exactly the same via some way
Gambas handles substitutions or (more likely) I made a typo in
duplicating the process.
Thanks for you help LEE.
Regards,
Lewis
On 01/05/2015 07:58 PM, T Lee Davidson wrote:
> On 01/05/2015 04:35 PM, Lewis Balentine wrote:
>> I must be missing something very basic in the use of form database controls.
>> I can not seem to get a data control populated ...
>> It appears to me that the data control is not linked to the DataSource.
>> What am I missing ???
>>
>> Two additional questions:
>> Is there a way to access the "Result" object of a DataSource ?
>> Is there a way to change the "DataSource" for a DataControl ?
>>
>> Regards,
>>
>> Lewis Balentine
> Hi Lewis,
>
> You didn't provide your project, so I can only guess at how you've designed the DataSource and DataControl(s).
>
> But, I think I can answer your first and third questions with one answer. Your third question gives me a hint that you are doing the same thing
> I first did.
>
> One thing that I missed at first is that the data control needs to be a child of the data source, and, conversely the data source must be the
> parent of the data control.
>
> In other words, when you place the DataSource on the form, you then expand it so it can contain (ie. be the parent of) the data controls.
>
>
> Lee
> __________
>
> "Artificial Intelligence is no match for natural stupidity."
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list