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.

MATWRITEU<br />

Syntax<br />

MATWRITEU dim.array {ON | TO} [file.var,] record.ID.expr<br />

[ON ERROR statements]<br />

Description<br />

The <strong>UniBasic</strong> MATWRITEU command writes successive elements of a dimensioned<br />

array to the corresponding attributes of a specified record. MATWRITEU<br />

does not release locks set by READU, READVU, or MATREADU statements.<br />

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

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

Parameters<br />

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

Parameter Description<br />

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

dim.array Specifies the dimensioned array from which to assign the values read<br />

to the successive attributes of the record record.ID.expr.<br />

You must name and dimension an array before you can use it in the<br />

MATWRITE statement.<br />

ON | TO file.var, Specifies the target file. You must specify an ON or TO clause.<br />

record.ID.exp Specifies the target record.<br />

ON ERROR<br />

statements<br />

Specifies statements to execute if MATWRITEU fails with a fatal<br />

error because the file is not open, an I/O error occurs, or UniData<br />

cannot find the file.<br />

If you do not specify the ON ERROR clause and a fatal error occurs,<br />

the program terminates.<br />

MATWRITEU Parameters

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

Saved successfully!

Ooh no, something went wrong!