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.

Examples<br />

In the following example, the program statement inserts HARRY at the end of the<br />

values in attribute 2:<br />

STR = INSERT(STR,2,-1,0,'HARRY')<br />

In the next example, the program statement inserts HARRY in the first value of<br />

attribute 2:<br />

STR = INSERT(STR,2,1,0,'HARRY')<br />

In the next example, the program statement inserts HARRY in the first subvalue of<br />

the first value of attribute 2:<br />

STR = INSERT(STR,2,1,1,'HARRY')<br />

In the next example, the program segment specifies Alias in the second attribute<br />

position:<br />

ARRAY = "#111":@AM:"Jones":@AM:"Smith"<br />

ARRAY2 = INSERT(ARRAY,2,0,0,"Alias")<br />

When you execute this program segment, UniData inserts Alias in the second<br />

attribute position:<br />

ARRAY2 = "#111":@AM:"Alias":@AM:"Jones":@AM:"Smith"<br />

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

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

DEL, FIELDSTORE, INS, REMOVE, REPLACE, SUBSTRINGS<br />

INSERT 1-400

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

Saved successfully!

Ooh no, something went wrong!