EPUB | CHM | PDF

TMySQLTable.Methods.LockTable

Top Previous Next

Locks a table.

Syntax:

procedure LockTable(LockType: TLockType);
type TLockType = (ltReadLock, ltWriteLock);

Description:

Call LockTable to lock a 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 write lock prevents other application from writing to a table. Requesting a read lock prevents other applications from reading a table and writing to it.

See also: UnlockTable method