$FUNCNAME$
  LASTREC()
$CATEGORY$
  DATABASE
$SUMMARY$
   Determine the number of records in the current .dbf file
$LANG_RU$
         .
$SYNTAX$
     LASTREC() | RECCOUNT()* --> nRecords
$LANG_RU$
     LASTREC() | RECCOUNT()* -->  
$RETURNS$
     LASTREC() returns the number of physical records in the current database
     file as an integer numeric value.  Filtering commands such as SET FILTER
     or SET DELETED have no effect on the return value.  LASTREC() returns
     zero if there is no database file in USE in the current work area.
$LANG_RU$
     LASTREC()         
       .    - ,  SET FILTER
      SET DELETED,     . LASTREC()
      0,        
     .
$DESCRIPTION$
     LASTREC() is a database function that determines the number of physical
     records in the current database file.  LASTREC() is identical to
     RECCOUNT() which is supplied as a compatibility function.

     By default, LASTREC() operates on the currently selected work area.  It
     will operate on an unselected work area if you specify it as part of an
     aliased expression (see example below).

     Note:  Although the functionality of RECNO() has been expanded to
     encompass the concept of "identity," the LASTREC() function continues to
     return only record numbers--not identities.  LASTREC() has no expanded
     functionality, so it is not "identity-aware."
$LANG_RU$
     LASTREC()     ,  
            . LASTREC()
      RECCOUNT(),     
     ,     xClipper .

       LASTREC()    () 
     .          ,
         ,   ( 
     ).
$EXAMPLES$
       This example illustrates the relationship between LASTREC(),
	RECCOUNT(), and COUNT:

	USE Sales NEW
	? LASTREC(), RECCOUNT()            // Result: 84 84
	//
	SET FILTER TO Salesman = "1001"
	COUNT TO nRecords
	? nRecords, LASTREC()            // Result: 14 84

       This example uses an aliased expression to access the number
	of records in a open database file in an unselected work area:

	USE Sales NEW
	USE Customer NEW
	? LASTREC(), Sales->(LASTREC())
$LANG_RU$
            LASTREC(),
       RECCOUNT()   COUNT:

       USE Sales NEW
       ? LASTREC(), RECCOUNT()         // : 84 84
       //
       SET FILTER TO Salesman = "1001"
       COUNT TO nRecords
       ? nRecords, LASTREC()           // : 14 84

               
             , 
       :

       USE Sales NEW
       USE Customer NEW
       ? LASTREC(), Sales->(LASTREC())
$SEEALSO$
  EOF()
$END$
