17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

AUTO Command<br />

Purpose:<br />

To generate and increment line numbers automatically each time you press the RETURN key.<br />

Syntax:<br />

AUTO [line number][,[increment]]<br />

AUTO .[,[increment]]<br />

Comments:<br />

AUTO is useful for program entry because it makes typing line numbers unnecessary.<br />

AUTO begins numbering at line number and increments each subsequent line number by<br />

increment. The default for both values is 10.<br />

The period (.) can be used as a substitute for line number to indicate the current line.<br />

If line number is followed by a comma, and increment is not specified, the last increment<br />

specified in an AUTO command is assumed.<br />

If AUTO generates a line number that is already being used, an asterisk appears after the<br />

number to warn that any input will replace the existing line. However, pressing return immediately<br />

after the asterisk saves the line and generates the next line number.<br />

AUTO is terminated by entering CTRL-BREAK or CTRL-C. GW-BASIC will then return to command<br />

level.<br />

Note<br />

The line in which CTRL-BREAK or CTRL-C is entered is not saved. To be sure that you save all<br />

desired text, use CTRL-BREAK and CTRL-C only on lines by themselves.<br />

Examples:<br />

AUTO 100, 50<br />

Generates line numbers 100, 150, 200, and so on.<br />

AUTO<br />

Generates line numbers 10, 20, 30, 40, and so on.<br />

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

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

Saved successfully!

Ooh no, something went wrong!