Difference between revisions of "FIELD COUNT()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "lianjaapi.h" to "lianja_api.h")
 
Line 7: Line 7:
 
==SYNOPSIS==
 
==SYNOPSIS==
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
int FIELD_COUNT()
 
int FIELD_COUNT()
Line 27: Line 27:
  
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
lianjaapi_field_count()
 
lianjaapi_field_count()

Latest revision as of 07:31, 11 April 2013

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()