11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MATREADU<br />

Syntax<br />

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

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

MATREADU 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> MATREADU command assigns the values found in successive attributes<br />

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

checks for locks and will not read a locked record. If the record is available,<br />

MATREADU reads and sets an exclusive (U) 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 />

BASICTYPEs P and R do not support the 0,0 element. If UniData reads more attributes<br />

from the file than it can place in the dimensioned array, a runtime error results<br />

and data is lost.<br />

MATREADU 1-455

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

Saved successfully!

Ooh no, something went wrong!