# LASTREC()

Returns the number of records in an active work area or database.

Syntax

  LASTREC() | RECCOUNT()* --> nRecords

Returns

  <nRecords > The number of records

Description

  This function returns the number of records present in the database in the selected or designated work area.If no records are present the value of this function will be 0.Additionaly,if no database is in use in the selected or designated work area,this function will return a 0 value as well.

Examples

          USE Tests NEW
          ? LASTREC(), RECCOUNT()

Status

  Ready

Compliance

  This function is CA Clipper compatible

Platforms

  All

Files

  Library is rdd

See Also

- EOF()