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 />

RUN Command<br />

Purpose:<br />

To execute the program currently in memory, or to load a file from the diskette into memory and<br />

run it.<br />

Syntax:<br />

RUN [line number][,r]<br />

RUN filename[,r]<br />

Comments:<br />

RUN or RUN line number runs the program currently in memory.<br />

If line number is specified, execution begins on that line. Otherwise, execution begins at the<br />

lower line number.<br />

If there is no program in memory when RUN is executed, GW-BASIC returns to command level.<br />

RUN filename closes all open files and deletes the current memory contents before loading the<br />

specified file from disk into memory and executing it.<br />

The r option keeps all data files open.<br />

If you are using the speaker on the computer, please note that executing the RUN command will<br />

turn off any sound that is currently running and will reset to Music Foreground. Also, the PEN<br />

and STRIG Statements are reset to OFF.<br />

Examples:<br />

RUN "NEWFIL", R<br />

Runs NEWFIL.BAS without closing data files.<br />

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

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

Saved successfully!

Ooh no, something went wrong!