HTBasic Help
×
Menu
Index

UNLOCK

Removes exclusive access protection from a LOCKed file.
 
 UNLOCK @io-path
 
 
 
Usage:
UNLOCK @Proprietary
IF Unsecure THEN UNLOCK @File
 
Example: UNLOCK.BAS
 
Description:
File locking capabilities depend on the operating system HTBasic is running on. If the operating system does not support it, this command is ignored. An ASSIGN @PathTO * will UNLOCK and then close the file.
 
A file can have multiple locks on it. The file remains locked until a corresponding number of UNLOCK statements have been executed. LOCKing a file should be a temporary action of short duration so that fair access to the file is provided to all users.
Under Windows, SHARE may need to be loaded in order to share, lock and unlock files.
See Also: