basic.unlock
Resets execution lock.
Syntax
unlock unlock lock.number.expression
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.
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.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
