Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>reccount()/lastrec()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RECCOUNT()/LASTREC()


Syntax:     RECCOUNT()/LASTREC()

Purpose:    To determine the number of physical records in the current
            database file.

Returns:    An integer numeric value.

            RECCOUNT() returns the number of physical records in the
            current database file.  This means that filtering commands
            such as SET FILTER or SET DELETED have no affect on the
            return value.

            RECCOUNT() returns zero if there is no database file in USE
            in the current work area.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   USE Sales
   ? RECCOUNT()                     && Result: 84
   *
   SET FILTER TO Salesman = "1001"
   COUNT TO num_recs
   ? num_recs                       && Result: 14
   ? RECCOUNT()                     && Result: 84


See Also: LASTREC() EOF()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson