RDD

RecCount()

Return the number of records

Syntax

Signature
RecCount() --> nRecords

Arguments

None.

Return value

Number of records in the current file.

Description

RecCount() returns the physical record count of the current work area.

Notes

With no open area it returns zero.

Example

RecCount.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Records: " + LTrim( Str( RecCount() ) ) )
   DbCloseArea()

RETURN

Output

See also