17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

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.

GW-BASIC <strong>User's</strong> Guide<br />

ERASE Statement<br />

Purpose:<br />

To eliminate arrays from a program.<br />

Syntax:<br />

ERASE list of array variables<br />

Comments:<br />

Arrays may be re-dimensioned after they are erased, or the memory space previously allocated to<br />

the array may be used for other purposes.<br />

If an attempt is made to re-dimension an array without first erasing it, an error occurs.<br />

Examples:<br />

200 DIM B (250)<br />

.<br />

.<br />

.<br />

450 ERASE A, B<br />

460 DIM B(3, 4)<br />

Arrays A and B are eliminated from the program. The B array is re-dimensioned to a 3-column<br />

by 4-row array (12 elements), all of which are set to a zero value.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/ERASE.html28/03/2004 21.29.24

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

Saved successfully!

Ooh no, something went wrong!