14

Renumber
Renunber... is a facilily available under the Edit menu. it is not normally needed with
BASIC 2 Plus, since BASIC 2Plus uses lincnumbers verylilsle. However,should you need
(orprefer) to write a program with line numbers, Ronunber... provides the easiest way to
do Ibis.

Whenyouselecs Renumber. - - ,adialoguebonappearswith threeoptions: Renoso, An In, and Add. You can specify thetine number of the first numbered line and the stepsize, thalis, the difference between each line numberand the next.

Choosing Rensse, An In,orAdd willrationalisethelinenumbersinyourpmgram Add will numberall thelines in theprograns; An In will numberonly those lines which already have numbers, and Rennse will number only those lines which arereferencedhy GOTO, GOSUt or other BASIC 2 Plus commands. In all tlsree cases the numbering will start at the number specifiedby First 1 ine,and willcontiuue in steps specifiedby Line Nu Step.

Rationalising line numbers means more than just renumbering the lines; it also means that references solines throughout theprogram are kept consistent. Forenample, iftheprogram contains theline
GOTO 255

itwillbe changed to make surecontrol still passes to the correct place. If line 255 han been renumbered so 120, then the above line will be altered to
GOTO 120

14