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.

READV<br />

Syntax<br />

READV var FROM [file.var,] record.ID.expr, attribute.expr<br />

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

Description<br />

The <strong>UniBasic</strong> READV command assigns the data from an attribute of a record to a<br />

variable.<br />

Note: READV ignores locks. To update a record, you should use the READVU<br />

command, which checks for locks. For an explanation of UniData locks, see<br />

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

Tip: To improve efficiency, use READV when only one or two attributes are needed<br />

from a record. If access to more attributes is needed, READ or MATREAD is more<br />

efficient.<br />

Parameters<br />

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

Parameter Description<br />

var Specifies a dynamic array to contain the attribute.<br />

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

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

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

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

the OPEN statement.<br />

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

attribute.expr Specifies the attribute to read.<br />

READV Parameters<br />

READV 1-647

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

Saved successfully!

Ooh no, something went wrong!