FIELD COUNT()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Return the number of fields

SYNONYM

api_field_count()

SYNOPSIS

#include "lianja_api.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 table.

The 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 table.

#include "lianja_api.h"
 
lianjaapi_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()