Macro Language Reference > Macros > Database > dbreccount
  
dbreccount
Description
Get the number of rows in the table.
 
Example 31. Get number of rows in table
dbreccount "Baskets"
^dbreccount=150
dbreccount "Baskets","nrecords"
^nrecords=150
Syntax
dbreccount table_name:s
table_name
Name of the internal table.
Additional Information
Return values:
var_name
optional script variable to store the result.
getvar 01915
 
It is worth noting that since support for Perl was introduced in version 7, it is possible to use various freely available Perl modules to perform various database activities if you are already experienced in or prefer to use Perl.