HB_FLastRec
Get the number of records in the currently selected text file
Syntax
HB_FLastRec() -> nLastRecordNum
Argument
None
Returns
An integer containing the number of records in the text file in the currently selected text file workarea, or zero if no file is currently open in the workarea or file is empty
Description
HB_FLastRec() returns the number of the last record in a text file.
A text file “record” is a line of text terminated by a CRLF pair.
Examples
HB_FUse( "test.txt" ) ? HB_FLastRec()
Seealso
HB_FAtEOF(), HB_FEof(), HB_FGoBottom(), HB_FGoto(), HB_FGoTop(), HB_FInfo(), HB_FReadAndSkip(), HB_FreadLN(), HB_FRecno(), HB_FSelect(), HB_FSkip(), HB_FUse()