Syntax
OrdKeyCount( [cOrder | nPosition], [cIndexFile] ) --> nKeysArguments
Optional order selector and index file.
Return value
Number of keys in the selected order.
Description
OrdKeyCount() returns the count of keys stored in an order.
Notes
The count can differ from the physical record count when an order is scoped or filtered.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
QOut( "Keys: " + LTrim( Str( OrdKeyCount( 1 ) ) ) )
DbCloseArea()
RETURNOutput