Subject last record of query
Author Sergio H. Gonzalez
Delphi 6, Interbase Express.

Hello
Is there way to know if I'm on the last record of a query? I need to do
something special (in a report) on the last record. I can't check for Eof,
because It's false until the next skip on the table.

So far I'm using

function LastRecord(t:TIBQuery): boolean;
begin
t.Next;
result := t.Eof;
t.Prior;
end;

But I guess if there is a "more elegant" way...
Thanks!
sergio