Used to define when to perform the locking of an editing record.
property LockMode: TLockMode;
Use the LockMode property to define when to perform the locking of an editing record. Locking a record is useful when creating multi-user applications. It prevents the possibility of several users modifying a record at the same time. Locking is realized through the execution of SELECT FOR UPDATE NOWAIT statement.
Locking is performed by the RefreshRecord method.
To set pessimistic locking use LockMode = lmLockImmediate, CheckMode = cmException. To set optimistic locking use LockMode = lmLockDelayed, CheckMode = cmException.
The default value is lmNone.