Locks a table to protect it from write transactions that conflict with each other.
RecordRef.LOCKTABLE([Wait] [, VersionCheck]) |
Parameters
- RecordRef
-
Type: RecordRef
The recordref that refers to the table that you want to lock.
- Wait
-
Type: Boolean
Specifies what to do if the table is already locked.
If this parameter is true and if another application has already locked the table, the system will wait until the table is unlocked.
If this parameter is false and if another application has already locked the table, a run-time error occurs.
- VersionCheck
-
Type: Boolean
If this parameter is true, the version will be checked. If this parameter is false, blank, or not used, the version will not be checked.