Subject | last record of query |
---|---|
Author | Sergio H. Gonzalez |
Post date | 2009-06-30T13:19:54Z |
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
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