Subject | IB_Transaction.Datasets[i] and TIBOQuery |
---|---|
Author | Alan McDonald |
Post date | 2007-10-17T10:03:42Z |
If I add a TIBOQuery to a form and set it's IB_Transaction, I see the
_DatasetCount of the IB_Transaction component increment by 3. (internal sets
as well as the query itself).
So if I do this:
IB_Transaction1.StartTransaction;
for i:=0 to IB_Transaction1.DatasetCount-1 do begin
with IB_Transaction1.Datasets[i] do begin
if (IB_Transaction1.Datasets[i].Name<>'') then begin
Open;
end;
end;
end;
I was expecting the TIBIOQueries on the form to open as do the TIB_Queries.
But they don't.
Can anyone tell me why the dataset count includes them but access to the
desendent TIBOQuery itself is not possible with this method?
regards
Alan McDonald
_DatasetCount of the IB_Transaction component increment by 3. (internal sets
as well as the query itself).
So if I do this:
IB_Transaction1.StartTransaction;
for i:=0 to IB_Transaction1.DatasetCount-1 do begin
with IB_Transaction1.Datasets[i] do begin
if (IB_Transaction1.Datasets[i].Name<>'') then begin
Open;
end;
end;
end;
I was expecting the TIBIOQueries on the form to open as do the TIB_Queries.
But they don't.
Can anyone tell me why the dataset count includes them but access to the
desendent TIBOQuery itself is not possible with this method?
regards
Alan McDonald