HB_FLastRec

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()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s