Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetLockingMode - method of object PmDatabase

Description:
It serves for setting the row locking mode
Syntax:
SetLockingMode(bPessimist As Boolean)
Calling:
oDb.SetLockingMode bPessimist
Parameters:
bPessimist(Boolean) Lock type
true - The 2K part of the table with the edited/added line is locked already during Edit, Add and unlocked during Update.
false - The part of the table with the edited/added line is locked only in the moment of calling the Update method.
Note:
Sets the indication whether the 2KB part of the table containing the edit line is locked when editing a line or adding a new line (methods Edit, Add) even during calling Edit (eventually Add). It is unlocked again by calling Update (eventually CancelUpdate).

The locking means that nobody else (other PmDatabase object, other application) cannot modify the locked part of the table in the locking time.

See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice