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

END Statement<br />

Purpose:<br />

To terminate program execution, close all files, and return to command level.<br />

Syntax:<br />

END<br />

Comments:<br />

END statements may be placed anywhere in the program to terminate execution.<br />

Unlike the STOP statement, END does not cause a "Break in line xxxx" message to be<br />

printed.<br />

An END statement at the end of a program is optional. GW-BASIC always returns to command<br />

level after an END is executed.<br />

END closes all files.<br />

Examples:<br />

520 IF K>1000 THEN END ELSE GOTO 20<br />

Ends the program and returns to command level whenever the value of K exceeds 1000.<br />

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

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

Saved successfully!

Ooh no, something went wrong!