HB_FGoTop

HB_FGoTop

Move the record pointer to the first record in selected text file

Syntax

      HB_FGoTop() -> NIL

Argument

None

Returns

NIL

Description

HB_FGoTop() moves the record pointer to the first record in the currently selected text file workarea.

A text file “record” is a line of text terminated by a CRLF pair.

Example

      HB_FUse( "test.txt" )    // open text file to the selected work area
      WHILE !HB_FEOF()
         ? HB_FReadLn()        // read a record / line
         HB_FSkip()            // Go to next record / line
      ENDDO
      HB_FGoTop()              // go to top of file ( first record / line )
      ? HB_FRecNo()            // 1

Seealso

HB_FAtEOF(), HB_FEof(), HB_FGoBottom(), HB_FGoto(), HB_FInfo(), HB_FLastRec(), HB_FReadAndSkip(), HB_FreadLN(), HB_FRecno(), HB_FSelect(), HB_FSkip(), HB_FUse()

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.