I want to be able to determine the names of available tables when my application connects to a database, so that I can populate the list of a combobox and select tables for viewing. I have tried using the Datasets and DataSetCount properties as in
for i := 0 to Datamodule1.MyConnection1.DataSetCount - 1 do
if Datamodule1.MyConnection1.DataSets[i] is TTable then
tmp := Datamodule1.MyConnection1.Datasets[i].Name;
but it doesn't work (there are never any items in the list). I would be grateful if someone would put me on the right track.