The Auto command directs the system to automatically generate program line numbers for program entry. You may also simply use the first 2 letters of the command - AU.
AUTO [<initial line number>] [, <line number increment>]
- Initial line number is 00010
- Increment is 10.
AUTO accepts two optional parameters:
- Initial line number is the first line number to be generated.
- Line number increment is the amount added to each line number to produce the next line number.
To use these parameters, just type the AUTO command, a space, the desired starting line number, another space or a comma, and the desired increment.
Comments and Examples
Type AUTO and press <ENTER> before you begin entering program lines. The number 00010 followed by a space and the cursor appears on the next line. When you then enter the first line of your program and press <ENTER>, the number 00020 appears on the next line.
The following example sets the beginning line number to 00100 and the increment to 20. The next line number will be 00120, then 00140, and so on:
AUTO 100 20
You may specify the starting line number and increment of your choice with the optional parameters.
AUTO cannot be used in procedure files.
Automatic line numbering continues to line number 99999 or until one of the following occurs:
- You press <ENTER> without entering anything after the line number.
- You change the supplied line number.
- You erase the supplied line number and enter a command.
- You move the cursor up or down to a line with a different line number.
AUTO can be stopped and started again with a new starting line number to insert new lines into the middle or end of the program in memory. If an existing line number is generated and entered using AUTO, the new line will replace the old line - just as when AUTO is not in effect. If you terminate AUTO on an existing line number, that line is not replaced.