Difference between revisions of "DBF LOCKR()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 45: Line 45:
  
 
==SEE ALSO==
 
==SEE ALSO==
[[BLOB_UPDATE()]], [[BLOB_WRITE()]], [[DBF_APPEND()]], [[DBF_DELETE()]], [[DBF_ISEXCLUSIVE()]], [[DBF_ISREADONLY()]], [[DBF_LOCKF()]], [[DBF_LOCKR()]], [[DBF_RECALL()]], [[DBF_UNLOCKF()]], [[DBF_UPDATE()]], [[FIELD_UPDATE()]], [[MEMO_UPDATE()]], [[MEMO_WRITE()]]
+
[[BLOB_UPDATE()]], [[BLOB_WRITE()]], [[DBF_APPEND()]], [[DBF_DELETE()]], [[DBF_ISEXCLUSIVE()]], [[DBF_ISREADONLY()]], [[DBF_LOCKF()]], [[DBF_RECALL()]], [[DBF_UNLOCKF()]], [[DBF_UPDATE()]], [[FIELD_UPDATE()]], [[MEMO_UPDATE()]], [[MEMO_WRITE()]]
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SDK]]
 
[[Category:SDK]]

Revision as of 17:12, 27 March 2009

PURPOSE

Unlock a record


SYNONYM

api_dbf_unlockr()


SYNOPSIS

#include "dbapi.h"
 
int	DBF_UNLOCKR()
 
<input parameters>
long	recnum;			/* Record number		*/
 
<output parameters>	
none


DESCRIPTION

The DBF_UNLOCKR() function will unlock the specified record in the currently selected database.


EXAMPLE

The following example locks then unlocks the current record.

#include "dbapi.h"
 
dbapi_dbf_unlockr()
{
    int	recno;
 
    recno = DBF_RECNO();
 
    if (!DBF_ISEXCLUSIVE()) DBF_UNLOCKR(recno);
 
    _retni( recno );
}


SEE ALSO

BLOB_UPDATE(), BLOB_WRITE(), DBF_APPEND(), DBF_DELETE(), DBF_ISEXCLUSIVE(), DBF_ISREADONLY(), DBF_LOCKF(), DBF_RECALL(), DBF_UNLOCKF(), DBF_UPDATE(), FIELD_UPDATE(), MEMO_UPDATE(), MEMO_WRITE()