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.

READVL<br />

Syntax<br />

READVL var FROM [file.var,] record.ID.expr, attribute.expr<br />

[ON ERROR statements] [LOCKED statements] {THEN statements [END] | ELSE<br />

statements [END]}<br />

READVL var FROM [file.var,] record.ID.expr, attribute.expr<br />

[LOCKED statements] [ON ERROR statements] {THEN statements [END] | ELSE<br />

statements [END]}<br />

Description<br />

The <strong>UniBasic</strong> READVL command assigns the data from an attribute of a record to<br />

a variable. READVL checks for locks. If the record is available, it sets a shared lock<br />

before it reads the record.<br />

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

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

You generally use the READVL command when only one or two attributes are needed<br />

from a record. If access to more attributes is needed, READ or MATREAD is more<br />

efficient.<br />

1-650 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!