AdsGetNumLocks

Advantage Client Engine

Retrieves the total number of records locked by the current user on the given table

Syntax

UNSIGNED32

AdsGetNumLocks (ADSHANDLE hTable,

UNSIGNED16 *pusNum);

Parameters

hTable (I)

Handle of table or cursor.

pusNum (O)

Return number of locks.

Remarks

AdsGetNumLocks returns zero in pulNum if the table is file locked. The number of locks returned includes implicit locks. The number does not include locks held by other users or other applications.

Example

Click Here

See Also

AdsGetAllLocks

AdsLockRecord

AdsUnlockRecord

AdsIsRecordLocked

AdsLockTable