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 same program segment compiled under BASICTYPE P or<br />

M searches the string STRING for the number of occurrences of the substring II and<br />

assigns that number, 3, to the variable IC. It counts two occurrences of the substring<br />

II in ROCKYIII.<br />

$BASICTYPE "P"<br />

STRING = "JAWSII,ROCKYIII,STARTREKIV"<br />

IC = COUNT(STRING,"II")<br />

COUNT 1-172

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

Saved successfully!

Ooh no, something went wrong!