UNLOCK

UNLOCK


TRIMF Index Level UNTIL
Syntax UNLOCK
UNLOCK lock.number.expression
Category BASIC
Type Statement
Description resets an execution lock, in the range 0 to 63, previously set with a "lock" statement.

If no "lock.number" is specified, all locks set by the program are unlocked.
Options
See Also statements & functions clear-basic-locks clear-locks LOCK list-locks (R83)
Example again: lock 12 else rqm; goto again
read rec from file,id else print id:" not found"; rec = "X"
write rec on file,id
unlock 12

This conditionally sets execution lock 12 just before a segment of code which performs file retrieval and update. When complete, lock 12 is cleared by the "unlock" statement.
Warnings
Compatibility D3 7.0 AP R83
TRIMF Index Level UNTIL