# UNLOCK

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

# Description

The UNLOCK statement releases a previously LOCKed execution lock. It takes the general form:

UNLOCK{expression}
1

If specifying expression, it should evaluate to the number of a held execution lock, for release.

If omitting expression then it releases all execution locks held by the current program.

There is no action if the program attempts to release an execution lock that it had not taken.

An example of use is as:

LOCK 23 ; LOCK 32
......
UNLOCK
1
2
3

Locks are in memory only and will not persist across a server reboot or jBASE service restart.

See also: LOCK.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide