Subject Re: [IBO] KeySource question
Author Geoff Worboys
> I have a customers-DataSource and several Datasets with
> KeySource linked to the customers-Datasource. Exists a
> list in the customers-datasource with all these
> datasets ? I have given the customers-datasource and I
> want to know all the datasets, that are linked to this
> datasource with KeySource-property. Is this possible ?

While the datasets do keep various link lists, those lists are held
internally and cannot be accessed outside the class or derivation.
However...

TIB_Connection keeps several lists of components, see the properties
Datasets, DatasetCount, Statements and StatementCount. So in your
instance I would do something like...

with TIB_Connection do
begin
for i := 0 to DatasetCount - 1 do
begin
if Datasets[i].KeySource = MyDataSource then
<whatever it is you want to do>
end;
end;


HTH

Geoff Worboys
Telesis Computing