UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

UNLOCK Syntax UNLOCK [num.expr] Description The UniBasic UNLOCK command unlocks predefined computer resources reserved by the LOCK command. Resource numbers range from 0 through 63. If you do not specify a resource number, the system releases all locks you have set. If there are no locked resources at the time of execution, the statement does not have any effect. The lock is associated with num.expr, not the resource. Therefore, a command that does not check for locks against the resource number will access the resource even if it is locked. For example, an installation might assign locks 1 through 4 to four system printers. When an application needs to reserve printer 1, the application executes LOCK 1. All other programs must check for locks before accessing the resource for the lock to be effective. Resources are not automatically unlocked by the termination of the locking program. You must use the UniBasic UNLOCK or ECL QUIT commands to release them. You also can release resources by executing the ECL CLEAR.LOCKS command at the UniData level. Example In the following example, the program statement unlocks all computer resources reserved by the current user: UNLOCK 1-892 UniBasic Commands Reference

Related Commands UniBasic LOCK UniData CLEAR.LOCKS, LIST.LOCKS, SUPERCLEAR.LOCKS – For information, see the UniData Commands Reference. UNLOCK 1-893

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

LOCK<br />

UniData<br />

CLEAR.LOCKS, LIST.LOCKS, SUPERCLEAR.LOCKS – For information, see the<br />

UniData <strong>Commands</strong> <strong>Reference</strong>.<br />

UNLOCK 1-893

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!