HTBasic Help
×
Menu
Index

REN

Renumbers program lines.
 
 REN [start-number [,increment]] [IN begin-line [,end-line]]
 
 
Usage:
REN 1000 IN 100,800
REN 1200
REN 100,5
REN 150,1 IN 140,Mark
Description:
This statement renumbers program statements, including the line references in all program statements such as GOSUB and GOTO to coincide with the new line numbers.
You can optionally specify the starting position, the increment between lines or a range of lines to renumber. The default value for both the start line number and the increment is ten.
Note: You cannot specify a new starting line number that would cause the lines to change position with respect to other existing program lines. Use MOVELINES or COPYLINES to do this.
See Also: