RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTable.LockTable Method

Locks a Paradox or dBASE table.

Pascal
procedure LockTable(LockType: TLockType);
C++
__fastcall LockTable(TLockType LockType);

Call LockTable to lock a Paradox or dBASE table to prevent other applications from placing a particular type of lock on the table. LockType specifies the lock requested by this application. 

Requesting a read lock prevents other applications from reading a table. Requesting a write lock prevents other application from writing to a table. 

An application can request both types of lock by calling LockTable twice, once for each lock type. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!