This is mnoGoSearch's cache of https://lists.gambas-basic.org/pipermail/user/2012-February/037258.html. It is a snapshot of the page as it appeared during last crawling. The current page could have changed in the meantime.

Last modified: Sun, 05 Feb 2012, 19:02:37 CET    Size: 3342
[Gambas-user] DataSource & DataBrowser problem

[Gambas-user] DataSource & DataBrowser problem

John Rose john.aaron.rose at ...626...
Sun Feb 5 19:02:37 CET 2012


To try & clarify this problem, my code for the button (in my FMain form)
click that opens the form which contains the DataSourceCountry &
DataBrowserCountry controls is shown below. When the project runs, the
FCountryMaintence form is displayed OK except that the DataSourceCountry
control is empty with the controls on its base all grayed out. I know
that MDatabase.DatabaseConnection is valid since it is used successfully
to do other database retrievals & updates.


Public Sub ButtonCountryMaintenance_Click()
  Dim hForm As Form
  hform = New FCountryMaintenance
  FCountryMaintenance.DataSourceCountry.Connection =
MDatabase.DatabaseConnection
  FCountryMaintenance.DataSourceCountry.Table = "country"
  FCountryMaintenance.DataBrowserCountry.Columns = ["country"]
  hForm.Show()
End





More information about the User mailing list