Syntax
OrdKeyNo( [cOrder | nPosition], [cIndexFile] ) --> nKeyNoArguments
Optional order selector and index file.
Return value
Logical position of the current record in the selected order.
Description
OrdKeyNo() returns the current record's position within the selected order.
Notes
The result is order-relative rather than a physical record identity.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "Key position: " + LTrim( Str( OrdKeyNo( 1 ) ) ) )
DbCloseArea()
RETURNOutput