DBF ISEXCLUSIVE()
From Recital Documentation Wiki
Revision as of 10:27, 30 March 2009 by Yvonnemilne (Talk | contribs)
PURPOSE
Is database opened exclusively
SYNONYM
api_dbf_isexclusive()
SYNOPSIS
#include "dbapi.h" int DBF_ISEXCLUSIVE() <input parameters> none <output parameters> none
DESCRIPTION
The DBF_ISEXCLUSIVE() function will return 1 if the currently active database is opened for exclusive use, 0 if it is opened shared and -1 if there is no database open in the current work area.
The Recital command SET EXCLUSIVE or the EXCLUSIVE key word used with the Recital command USE, control how the database is opened.
EXAMPLE
The following example returns .T. if the database is opened for shared access.
#include "dbapi.h" dbapi_dbf_isexclusive() { int result; result = DBF_ISEXCLUSIVE(); _retl ( ( result ) ? 0 : 1 ); }
SEE ALSO
BLOB_UPDATE(), BLOB_WRITE(), DBF_APPEND(), DBF_DELETE(), DBF_ISREADONLY(), DBF_LOCKF(), DBF_LOCKR(), DBF_RECALL(), DBF_UNLOCKF(), DBF_UNLOCKR(), DBF_UPDATE(), FIELD_UPDATE(), MEMO_UPDATE(), MEMO_WRITE()