DBF ALIAS()
From Lianjapedia
PURPOSE
Return alias name
SYNONYM
api_dbf_alias()
SYNOPSIS
#include "lianja_api.h" char *DBF_ALIAS() <input parameters> none <output parameters> none
DESCRIPTION
The DBF_ALIAS() function will return will return the alias name of the currently selected cursor as an upper case character string, or a NULL if no table is in use.
EXAMPLE
The following example returns the alias name of the current cursor, or executes the command specified in the first parameter if no table is open.
#include <stdio.h> #include "lianja_api.h" lianjaapi_dbf_alias() { char *alias; alias = DBF_ALIAS(); if ( alias == NULL) { COMMAND(_parc(1) ); _retc(""); } else { _retc( alias ); } }
SEE ALSO
DBF_DBF(), DBF_FMT(), DBF_INDEXKEY(), DBF_INDEXORDER(), DBF_ISEXCLUSIVE(), DBF_ISREADONLY(), DBF_NDX(), DBF_SELECT(), DBF_USED()