11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RELEASE<br />

Syntax<br />

RELEASE [file.var [, record.ID.expr]] [ON ERROR statements]<br />

Description<br />

The <strong>UniBasic</strong> RELEASE command unlocks records and files locked by the same<br />

user process. If no files or records are locked, RELEASE has no effect.<br />

Tip: <strong>UniBasic</strong> locks are advisory only. For more information, see Developing<br />

<strong>UniBasic</strong> Applications.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

1-670 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

file.var Specifies a file to unlock. If you do not specify a file or a record,<br />

UniData releases all locks set by the same user process.<br />

,record.ID.expr Specifies a record ID to unlock. If you do not specify a record<br />

with record.ID.expr, UniData releases all locked records within<br />

the file.<br />

ON ERROR statements Specifies statements to execute if the RELEASE statement fails<br />

with a fatal error because the file is not open, an I/O error<br />

occurs, or UniData cannot find the file.<br />

If you do not specify the ON ERROR clause and a fatal error<br />

occurs, the program terminates.<br />

RELEASE Parameters

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

Saved successfully!

Ooh no, something went wrong!