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.

CLEARCOMMON<br />

Syntax<br />

CLEARCOMMON [/common.label/]<br />

Synonyms<br />

CLEAR COMMON, CLEARCOM, CLEAR COM<br />

Description<br />

The <strong>UniBasic</strong> CLEARCOMMON command sets all variables in a named common<br />

area to zero. If you do not specify common.label, CLEARCOMMON sets all<br />

variables specified in the unnamed common area to zero.<br />

Examples<br />

In the following example, the program statement sets to zero all variables named in<br />

COM_1:<br />

CLEARCOMMON /COM_1/<br />

In the next example, the program statement sets to zero all variables held in common<br />

areas if the variable INITIALIZE.COMMON is true:<br />

IF INITIALIZE.COMMON THEN CLEAR COMMON<br />

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

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

CLEAR, COMMON<br />

CLEARCOMMON 1-142

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

Saved successfully!

Ooh no, something went wrong!