11TurboDB VCL Component Library

TTdbLockType

TTdbTable        See also

Previous  Top  Next

Indicates the kind of lock to apply.

Delphi syntax:

TTdbLockType = (tltWriteLock, tltTotalLock);

C++ syntax:

enum TTdbLockType {tltWriteLock, tltTotalLock};

Description

tltWriteLock        A write lock prevents other applications from writing to the table

               Use this type of lock if you want to ensure that no other application can write changes to the table during your read operation.

tltTotalLock        A total lock prevents other applications from accessing the table

               Use this type of lock if you want to ensure that no other application can read from the table during your write operation.