1 03/12/76   edit resequence, edit res
 2 
 3 Function:  The resequence request renumbers specified lines in the
 4 current file, beginning with a given line number and adding a given
 5 increment to derive subsequent numbers.  If only a beginning line is
 6 given, resequencing continues to the end of the file.  If a range of
 7 lines is given, resequencing terminates at the upper bound of the
 8 range.  If no argument is given, the default assumption is to begin
 9 renumbering at the beginning of the file (denoted by 0), to assign 100
10 as the first line number, and to derive subsequent numbers in
11 increments of 10.  For BASIC programs (if the system name is basic or
12 dbasic), internal references to changed line numbers are also changed.
13 
14 
15 Syntax:
16 
17 edit resequence {new_num, start_line, inc}
18 
19 edit resequence new_num, range, inc
20 
21 
22 where:
23 
24 1.   new_num        is the first new line number to be assigned (100 by
25                     default).
26 
27 2.   start_line     is the line to which new_num is to be assigned (0
28                     by default).
29 
30 3.   inc            is the increment used to derive subsequent line
31                     numbers (10 by default).
32 
33 4.   range          is a range of lines delimiting the resequencing
34                     operation.
35 
36 
37 Example:
38 
39 !    new newfile
40      ready  1301
41 
42 !    210 if m>n then 260
43 !    220 next i
44 !    230 if n<>m then 260
45 !    240 print "ok"
46 !    250 stop
47 !    260 go to 400
48 !    edit resequence
49      ready  1301
50 
51 !    lisn
52      100 if m>n then 150
53      110 next i
54      120 if n<>m then 150
55      130 print "ok"
56      140 stop
57      150 go to 400
58      ready  1301
59 
60 !    edit resequence 210 110-130 5
61      ready  1302
62 
63 
64 !    lisn
65      100 if m>n then 150
66      210 next i
67      215 if n<>m then 150
68      220 print "ok"
69      140 stop
70      150 go to 400
71      ready  1302