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.

-=<br />

Syntax<br />

var -= expr<br />

Description<br />

The -= arithmetic operator decrements the value of a variable by the number you<br />

specify.<br />

Tip: Using the -= operator is a more efficient way to decrement a variable. For<br />

example, LINES -= 1 is more efficient than LINES = LINES -1.<br />

Example<br />

In the following example, the variable LINES is decremented by 1, which sets LINES<br />

equal to 6:<br />

LINES = 7<br />

LINES -= 1<br />

-= 1-46

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

Saved successfully!

Ooh no, something went wrong!