Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetLockingMode - method of the PmaDatabase object

Description:
Sets the row locking mode
Syntax:
Empty SetLockingMode(Boolean 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 the Edit method (eventually the Add method). It is unlocked again by calling the Update method (eventually the CancelUpdate method).

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

See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

oDb.SetLockingMode(true);
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice