[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