Difference between revisions of "DBF USED()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 43: Line 43:
  
 
==SEE ALSO==
 
==SEE ALSO==
[[COMMAND()]], [[DBF_ALIAS()]], [[DBF_DBF()]], [[DBF_ISEXCLUSIVE()]], [[DBF_ISREADONLY()]], [[DBF_SELECT]]
+
[[COMMAND()]], [[DBF_ALIAS()]], [[DBF_DBF()]], [[DBF_ISEXCLUSIVE()]], [[DBF_ISREADONLY()]], [[DBF_SELECT()]]
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SDK]]
 
[[Category:SDK]]

Latest revision as of 13:20, 30 March 2009

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