FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlxMemTable.Eof Method

Indicates whether a dataset is positioned at the last record.

Pascal
function Eof: boolean;
C++
__fastcall boolean Eof();

Test Eof (end-of-file) to determine if the active record in a dataset is the last record. If Eof is true, the current record is unequivocally the last row in the dataset. Eof is true when an application: 

 

Opens an empty dataset. 

Calls a dataset's Last method. (Unless it is a unidirectional dataset) 

Call a dataset's Next method, and the method fails because the current record is already the last row in the dataset. 

 

Eof is false in all other cases.

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!