|
<< Click to Display Table of Contents >> Delphi Examples: DbiAcqTableLock |
![]() ![]()
|
Place a write lock on an existing table:
Delphi users should use the method TTable.LockTable rather than directly calling DbiAcqTableLock. This method is defined as:
procedure TTable.LockTable(LockType: TLockType);
The following code places a write lock on a TTable object called Table1:
Table1.LockTable(ltWriteLock);
Place a write lock on the specified cursor's table:
Delphi users should use TTable.LockTable: This example uses the following input:
fDbiAcqTableLock(Table1.Handle);
procedure fDbiAcqTableLock(hTmpCur: hDBICur);
begin
Check(DbiAcqTableLock(hTmpCur, dbiWRITELOCK));
end;