| Directives |
|
| Format | RENUMBER [new_line1[,step_val[,range_start][,range_end]]] Where: |
|
| new_line1 | New starting line number (default is 0010). | |
| range_start | Starting line number or label at which to begin renumbering. Optional. Use to define the start of an existing range in the program for renumbering. | |
| range_end | Ending line number or label with which to stop renumbering. Optional. Use to define the end of an existing range in the program for renumbering. | |
| step_val | Increment or step value between line numbers (default is 10). Numeric expression. | |
| Description | Use the RENUMBER directive to assign new line numbers to the current program. During the renumbering process, ProvideX adjusts all references to the lines being renumbered (e.g., GOTO, ERR= option, etc.) to reflect the new line number. By default, the complete program is renumbered. You can choose to resequence only selected ranges of the program. All references (GOTO, etc.) are adjusted in either case. Use embedded REM statements in the program to control renumbering. If a remark line starts with a number (e.g., 4000 REM 4000), ProvideX uses the number as the absolute line number (assuming it is less than or equal to the current resequence number). |
|
| Examples | ->LIST 0001 FOR I = 1 TO 40 0002 READ (1,ERR=18)A,B 0003 PRINT A,B 0007 NEXT I 0010 STOP 0014 REM 100 - Error procedure 0018 EXITTO 0008 ->RENUMBER ->LIST 0010 FOR I=1 TO 40 0020 READ (1,ERR=0110)A,B 0030 PRINT A,B 0040 NEXT I 0050 STOP 0100 REM 100 - Error procedure 0110 EXITTO 0045 In line 0110 (renumbered version) ProvideX generated line number 0045 in the EXITTO statement since no line number 0008 existed in the original version. |
|