|
<< Click to Display Table of Contents >> DbiIsTableLocked |
![]() ![]()
|
C syntax
DBIResult DBIFN DbiIsTableLocked (hCursor, edbiLock, piLocks);
Delphi syntax
function DbiIsTableLocked (hCursor: hDBICur; epdxLock: DBILockType; var iLocks: Word): DBIResult stdcall;
Description
DbiIsTableLocked returns the number of locks of type edbiLock acquired on the table associated with the given session.
Parameters
hCursor Type: hDBICur (Input)
Specifies the cursor handle.
edbiLock Type: DBILockType (Input)
Specifies the lock type to verify.
piLocks Type: pUINT16 (Output)
Pointer to the client variable that receives the number of locks of the given lock type.
Usage
dBASE or FoxPro: For dBASE and FoxPro tables, dbiREADLOCKs are upgraded to dbiWRITELOCKs. If the value of edbiLock is dbiREADLOCK, then the number of write locks are returned in piLocks.
DbiResult |
Meaning |
DBIERR_NONE |
The number of locks was returned successfully. |
DBIERR_INVALIDHNDL |
The specified cursor handle is invalid or NULL. |
DBIERR_INVALIDPARAM |
piLocks is NULL. |
See also