DBF DBF()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Return the table name

SYNONYM

api_dbf_dbf()

SYNOPSIS

#include "lianja_api.h"
 
char	*DBF_DBF()
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The DBF_DBF() function will return the name of the currently selected table as a character string, or a NULL if none is active.

The table name is returned in lower case including the file extension.

EXAMPLE

The following example returns the name of the table in the current cursor.

#include "lianja_api.h"
 
lianjaapi_dbf_dbf()
{
    char 	*dbfname()
 
    dbfname = DBF_DBF();
 
    _retc( dbfname );
}

SEE ALSO

DBF_ALIAS(), DBF_FMT(), DBF_INDEXKEY(), DBF_INDEXORDER(), DBF_ISEXCLUSIVE(), DBF_ISREADONLY(), DBF_NDX(),DBF_SELECT(), DBF_USED(), FIELD_COUNT(), FIELD_LOOKUP()