Difference between revisions of "DBF RECCOUNT()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 42: Line 42:
 
==SEE ALSO==
 
==SEE ALSO==
 
[[DBF_GOTO()]], [[DBF_ISBOF()]], [[DBF_ISEOF()]], [[DBF_RECNO()]], [[DBF_SEEK()]], [[DBF_SKIP()]], [[FIELD_COUNT()]], [[MEMO_MLCOUNT()]]
 
[[DBF_GOTO()]], [[DBF_ISBOF()]], [[DBF_ISEOF()]], [[DBF_RECNO()]], [[DBF_SEEK()]], [[DBF_SKIP()]], [[FIELD_COUNT()]], [[MEMO_MLCOUNT()]]
 
[[Category:Documentation]]
 
[[Category:SDK]]
 
 
The following example returns the record size.
 
 
<code lang="c">
 
#include "dbapi.h"
 
 
dbapi_dbf_recsize()
 
{
 
    int size;
 
   
 
    size = DBF_RECSIZE();
 
   
 
    _retni( size );
 
}
 
</code>
 
 
 
==SEE ALSO==
 
[[DBF_GOTO()]], [[DBF_ISBOF()]], [[DBF_ISEOF()]], [[DBF_RECCOUNT()]], [[DBF_RECNO()]], [[DBF_SEEK()]], [[DBF_SKIP()]], [[FIELD_COUNT()]], [[MEMO_MLCOUNT()]]
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SDK]]
 
[[Category:SDK]]

Latest revision as of 17:26, 27 March 2009

PURPOSE

Return the number of records


SYNONYM

api_dbf_recccount()


SYNOPSIS

#include "dbapi.h"
 
int	DBF_RECCOUNT()
 
<input parameters>
none
 
<output parameters>
none


DESCRIPTION

The DBF_RECCOUNT() function will return the number of records in the currently selected database.


EXAMPLE

The following example goes to the last record in the database.

#include "dbapi.h"
 
dbapi_dbf_reccount()
{
    int	rc;
 
    rc = DBF_GOTO( DBF_RECCOUNT());
}


SEE ALSO

DBF_GOTO(), DBF_ISBOF(), DBF_ISEOF(), DBF_RECNO(), DBF_SEEK(), DBF_SKIP(), FIELD_COUNT(), MEMO_MLCOUNT()