Unlock

Releases a lock acquired with the Lock statement, restoring access by other processes to the previously locked region of an open file.

The Unlock statement is documented together with Lock on the Lock, Unlock page.

Syntax:

Unlock [ # ] filenumber , [ recordrange ]

The arguments to Unlock must match exactly the arguments of the corresponding Lock statement. See Lock, Unlock for full details.

Important

Be sure to remove all locks with an Unlock statement before closing a file or quitting the program. Failure to remove locks produces unpredictable results.

See Also