UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Parameter Description STATUS Function Return Values After you execute MATWRITE, the STATUS function returns one of the values described in the following table. Example In the following example, the program segment writes the dimensioned array RECEIPTS to the file REC87 as a record with ID “RENTALS”: 1-460 UniBasic Commands Reference ON | TO file.var, Specifies the file on which to write the record. You must specify an ON or TO clause. record.ID.expr Specifies the record on which to write the attributes. ON ERROR statements Specifies statements to execute if MATWRITE fails with a fatal error because the file is not open, an I/O error occurs, or UniData cannot find the file. If you do not specify the ON ERROR clause and a fatal error occurs, the program terminates. Value Description MATWRITE Parameters (continued) (continued) 0 The record was locked before MATWRITE executed. You are in danger of simultaneously updating a record being updated by another user. -2 The record was not locked before MATWRITE executed. STATUS Function Return Values COMMON RECEIPTS(12) MATWRITE RECEIPTS ON REC87,"RENTALS"

Related Commands UniBasic DIM, INMAT, MAT, MATBUILD, MATPARSE, MATREAD, MATREADL, MATREADU, MATWRITEU MATWRITE 1-461

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

DIM, INMAT, MAT, MATBUILD, MATPARSE, MATREAD, MATREADL,<br />

MATREADU, MATWRITEU<br />

MATWRITE 1-461

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

Saved successfully!

Ooh no, something went wrong!