Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - areccount() return the number of records in an alias http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 areccount()         Return the number of records in an alias
------------------------------------------------------------------------------
 Declaration
   database.hdr

 Syntax
   func long areccount extern
   param alias sDatabase

 Arguments
   sDatabase is a database alias whose record count is to be returned.

 Return
   The number of records in the database file.

 Description
   The areccount() function returns the number of records within the
   database file of the specified sDatabase parameter. areccount() counts
   all records regardless of set filter to and set delete. Use
   the count to command if these conditions need to be regarded.

   The areccount() function performs identically to the reccount() function.
   areccount() differs syntactically in that it accepts an alias as
   parameter.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_areccount
   open sTest index sIdxLN
   seek "Vanderbilt"
   if found()
      // show percentage of database where a certain record is found
      ? "Record found at", istr( 100 * recno() / areccount( sTest ) ), "%"
   endif
   endproc

   proc main
   Test_areccount()
   endproc

See Also: reccount() recno() recsize()

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