11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note: When you create a select list using the BY.EXP keyword against a multivalued<br />

or multi-subvalued attribute, the resulting select list contains the multivalue position<br />

in the second value of the attribute and the multi-subvalue position in the third value<br />

of the attribute. If a BY.EXP select statement is executed against an attribute with a<br />

value code specifier of MV, the third value in each attribute in the resulting select list<br />

is -5 as the following shows:<br />

001: 785}1}-5<br />

002: 796}1}-5<br />

003: 812}1}-5<br />

...<br />

READNEXT assigns the values and subvalues of each record ID to val.var and<br />

subval.var. The val.var and subval.var each can contain more than one data value<br />

(separated by value or subvalue marks) if you use more than one BY.EXP keyword<br />

when you create the select list. In this case, the first subvalue in val.var and in<br />

subval.var corresponds to the value and subvalue position of the attribute in the first<br />

BY.EXP expression. The second subvalue in val.var and in subval.var corresponds<br />

to the value and subvalue position of the attribute in the second BY.EXP clause, and<br />

so forth for each successive BY.EXP clause.<br />

Parameters<br />

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

Parameter Description<br />

id.var Specifies a variable to contain the value of the next record ID.<br />

,val.var,subval.var Specifies a value and subvalue to read.<br />

FROM list.num.expr Specifies which select list (0-9) you want to use. If you do not<br />

specify list.num, the default (0) list is used. If no items are<br />

available in the list, UniData executes the ELSE clause.<br />

READNEXT Parameters<br />

READNEXT 1-629

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

Saved successfully!

Ooh no, something went wrong!