TOracleSession.DataSets.Count not available?

mesteri

Member
We used this code with NT4.0, Delphi 4 and DOA v3.23. Now we want to upgrade to W2K, Delphi 5 and the newest DOA Version. A compile failed because it cant find the class

TOracleSession.DataSets.Count

Any ideas? Can we use another class instead of DataSets.Count?

*************************
begin

for i:= 0 to Session.DataSets.Count - 1 do
begin
if TOracleDataSet(Session.DataSets).Modified or
TOracleDataSet(Session.DataSets).updatespending then
begin
found := true;
end;
end;

end;

********************************

Thanx in advance,

Martin
 
DataSets is now a TThreadList, so you have to call DataSets.LockList, get
the Count from the returned List, and call UnlockList. This 'feature' is
undocumented, so this can change between releases without any notification
wink.gif
.

------------------
Marco Kalter
Allround Automations
 
Back
Top