FIELD COUNT()

From Recital Documentation Wiki
Revision as of 16:51, 27 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PURPOSE

Return the number of fields


SYNONYM

api_field_count()


SYNOPSIS

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


DESCRIPTION

The FIELD_COUNT() function will return the number of fields in the currently selected database.

The Recital command SET FIELDS TO will be reflected in the value returned by the FIELD_COUNT() function.


EXAMPLE

The following example returns the number of fields in the current database.

#include "dbapi.h"
 
dbapi_field_count()
{
    int	fldnum;
 
    fldnum = FIELD_COUNT();
 
    _retni( fldnum );
}


SEE ALSO

BLOB_SIZE(), DBF_RECCOUNT(), DBF_RECSIZE(), FIELD_LOOKUP(), FIELD_NAME(), FIELD_NAME(), FIELD_UPDATE(), FIELD_VALUE(), MEMO_MLCOUNT(), MEMO_SIZE()