> I still dont agree :-)
>
>
> Nextly - I dont see EOF as a state, and dont see why it should be a state.
> To me EOF is a flag that says 'your last attempt at next failed because
you
> are at the end of the dataset'. Also the current 'state', meaning
pointing
> to an invalid record past the end of the dataset, does not distinguish
> between an empty dataset and a full one gone off the end.
Lets say I have this code using TDataset
{when we start the eof is false. there are at least 2 valid records in our
dataset}
while not eof do begin
next;// if it was the last record then eof=true
{code}
prior;// we are now 1 record before the last one thus eof=false
{code}
next;// we are on the last record but eof=false
{in theory we should have advanced one record}
end;
So in TDataset this loop is infinite.
But in IBO it works perfectly.