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.

RECORDLOCKED<br />

Syntax<br />

RECORDLOCKED (file.var, rec.id.expr)<br />

Description<br />

The <strong>UniBasic</strong> RECORDLOCKED function returns the lock status of the specified<br />

record or file. For an explanation of UniData locks, and for a sample program you<br />

can use to test this command, see Developing <strong>UniBasic</strong> Applications.<br />

Null Value Handling<br />

With null value handling on, the null value in file.var results in a RECORDLOCKED<br />

return value of -2 and a STATUS function return value of -12. The null value is a valid<br />

record ID and can be passed to the function in rec.id.expr.<br />

Parameters<br />

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

Parameter Description<br />

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

file.var Specifies the file on which to check lock status. The null value in file.var<br />

results in a RECORDLOCKED return value of -2.<br />

rec.id.expr Specifies the record on which to check lock status.<br />

RECORDLOCKED Parameters

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

Saved successfully!

Ooh no, something went wrong!