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.

MATREADL<br />

Syntax<br />

MATREADL dim.array FROM [file.var,]record.ID.expr [ON ERROR statements]<br />

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

MATREADL dim.array FROM [file.var,]record.ID.expr [LOCKED statements]<br />

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

Description<br />

The <strong>UniBasic</strong> MATREADL command assigns the values found in successive attributes<br />

of a record to corresponding elements of a dimensioned array. MATREADL<br />

checks for locks and will not read a record locked with an exclusive (U) lock. If the<br />

record is available, MATREADL reads and sets a shared (L) lock on it.<br />

Note: <strong>UniBasic</strong> locks are advisory only. They prevent access by other lock-checking<br />

commands only. For more information about <strong>UniBasic</strong> locks, see Developing<br />

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

Parameters<br />

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

Parameter Description<br />

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

dim.array Specifies the dimensioned array into which the values are read.<br />

FROM file.var, Specifies the file from which to read.<br />

If you do not specify a file.var, UniData reads from the default<br />

file. If no default file is open, a fatal READ error occurs.<br />

A default file is one for which no file variable is assigned in the<br />

OPEN statement.<br />

record.ID.expr Specifies the record from which to read the attributes.<br />

MATREADL Parameters

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

Saved successfully!

Ooh no, something went wrong!