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 displays 1AA33BB667. Note that the fives<br />

in X are dropped because no corresponding substitute is provided.<br />

X = "122334455667"<br />

PRINT CONVERT("245","AB",X)<br />

In the following example, Z becomes kakakakaka because the extra character “t” in<br />

S2 is ignored:<br />

Y="sasasasasa"<br />

S1="s"<br />

S2="kt"<br />

Z=CONVERT(S1,S2,Y)<br />

PRINT Z<br />

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

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

CONVERT command, SWAP<br />

1-169 <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!