Hello,

 

I have a form that contains a named datasource. I want to read the name and
table properties of that datasource from another form. Both forms are
visible.

I've used the loop "For each hWindow in Windows" to test to see if the form
is visible. If it is I cycle through the control collection for that form
till I find an Object.Type = "DataSource". So far so good - I can find the
datasource and assign it to a variant variable (DataTable). Now if I do strX
= DataTable.Name it returns "DataSource1"  instead of "Neighborhood" the
name of the datasource on the form containing the collection.

 

I want to get to the datasource name and table from the first form. They
should be name=neighborhood and table=tblneighborhood. If I assign
frmEntry.Neighborhood to datatable on the second form then I get the correct
data returned. I think it should be possible to get this data from the forms
collection but, I have not figured out how.

 

So can it be done and if so how?

 

Regards,

Marty

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to