Skip to content

AUTO

Syntax

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

Purpose

To generate a line number automatically after every carriage return.

Remarks

AUTO begins numbering at and increments each subsequent line number by . The default for both values is 10. If is followed by a comma but is not specified, the last increment specified in an AUTO command is assumed. If AUTO generates a line number that is already being used, an asterisk is printed after the number to warn the user that any input will replace the existing line. However, typing a carriage return immediately after the asterisk will save the line and generate the next line number. AUTO is terminated by typing Control-C. The line in which Control-C is typed is not saved. After Control-C is typed, BASIC returns to command level.

Example

AUTO 100,50
REM Generates line numbers 100, 150, 200, etc.

AUTO
REM Generates line numbers 10, 20, 30, 40, etc.

See Also

  • DELETE - To delete program lines
  • EDIT - To enter Edit Mode at the specified line
  • LIST - To list all or part of the program currently in memory at the terminal
  • LLIST - To list all or part of the program currently in memory at the line printer
  • RENUM - Renumber program lines and update line references