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.

In the next example, the program segment assigns the two fields following the third<br />

occurrence of the delimiter “,” in the variable ARR to NARRAY. UniData stores the<br />

value 5,8 in NARRAY.<br />

ARR = "10,10,5,8,7,12,15,8"<br />

NARRAY = FIELD(ARR,",",3,2)<br />

In the next example, the program segment assigns the second group of characters in<br />

a string delimited by spaces in the variable NAME to LNAME. UniData stores the<br />

value Smith in LNAME.<br />

NAME = "Harry Smith"<br />

LNAME = FIELD(NAME," ",2)<br />

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

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

COL1, COL2, INDEX<br />

1-248 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!