DBF USED()

From Recital Documentation Wiki
Revision as of 13:20, 30 March 2009 by Yvonnemilne (Talk | contribs)

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

PURPOSE

Is a database table in use?


SYNONYM

api_dbf_used()


SYNOPSIS

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


DESCRIPTION

The DBF_USED() function will return 1 if a database table is in use in the current workarea, or 0 if no database table is opened.


EXAMPLE

The following example checks if a database table is opened in the current workarea.

#include "dbapi.h"
 
dbapi_dbf_used()
{
    int	result;
 
    result = DBF_USED();
 
    _retl( result );
}


SEE ALSO

COMMAND(), DBF_ALIAS(), DBF_DBF(), DBF_ISEXCLUSIVE(), DBF_ISREADONLY(), DBF_SELECT()