RECNO()

From Recital Documentation Wiki
Revision as of 11:07, 5 July 2011 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to return current record number


Syntax

RECNO([<workarea | alias> [<expN>])


See Also

ALIAS(), BOF(), CURSYNCNUM(), DBF(), EOF(), FOUND(), GOTO, RECCOUNT(), ROWNUM(), SEEK, SEEK(), SELECT, SELECT(), SEQNO(), SKIP, SYNCNUM(), UNIQUEROWID(), USE


Description

The RECNO() function returns the record number of the current record in the currently selected table file. Note that when using indexed tables, RECNO() returns a physical record number in the table, and not a record number relative to the index. If the optional <workarea | alias> is specified, then the function will operate in the required location. The optional <expN> can be used as a softseek function when the value of 0 is specified. If a seek fails on an index table, RECNO(0) will return the record number for the record above the SEEK expression value with respect to the index.


Example

use accounts index acc_no
? recno()
         1
goto 35
? recno()
        35


Products

Recital, Recital Server