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.

MATREAD<br />

Syntax<br />

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

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

Description<br />

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

of a record to corresponding elements of a dimensioned array — regardless of<br />

lock status.<br />

You must use the DIM command to create a dimensioned array before you execute<br />

MATREAD.<br />

Note: This command does not check for locks. If you are operating in a multiuser<br />

environment, you must use record locks to prevent users from overlaying data<br />

updated by others. For more information about the <strong>UniBasic</strong> record locking, see<br />

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

Parameters<br />

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

Parameter Description<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.<br />

MATREAD Parameters<br />

MATREAD 1-449

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

Saved successfully!

Ooh no, something went wrong!