@Atreide two problems are: 1: users want reasonable scrollbars - and that requres knowing
count
- not perhaps accurate, but give or take 10% is ok. 2: In Delphi 5 (1999) there was no
TDataset.IsEmpty
function. Programmers were
supposed to use
TDataset.BOF and TDataset.EOF
as a substitute, but most code examples only shown
.EOF
and not
.BOF
and i am not sure this was ever documented. So they went easy was with
RecordCount <> 0
instead (and -1 <> 0 :-D ). I do not remember which Delphi version introduced
.IsEmpty
function, but to that year internet was all full with count abuse —
Arioch 'The 24 secs ago