Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7222
Chapter 2 Program Instructions
RENUM
Field of Application
Statement for renumbering the lines of the program currently residing
in the printer’s working memory.
Syntax RENUM[<ncon
1
>][,[<ncon
2
>][,<ncon
3
>]]
<ncon
1
> is the fi rst line number of the new sequence.
<ncon
2
> is the line in the current program at which renumbering
is to start.
<ncon
3
> is the desired increment between line numbers in the
new sequence.
Default values: 10, 1, 10
Remarks
This statement is useful for providing space for more program lines when
expanding an existing program, and for renumbering programs written without
line numbers, for example after being LISTed, LOADed, or MERGEd. Line
references following GOTO statements will be renumbered accordingly. Use
a LIST statement to print the new numbers on the screen.
Example
A program may be renumbered like this:
10 FONT "Swiss 721 BT"
20 PRPOS 30,100
30 PRTXT "HELLO"
40 A%=A%+1
50 PRINTFEED
60 IF A%<3 GOTO 40
70 END
RENUM 100,20,50
LIST
yields:
10 FONT "Swiss 721 BT"
100 PRPOS 30,100
150 PRTXT "HELLO"
200 A%=A%+1
250 PRINTFEED
300 IF A%<3 GOTO 200
350 END
Note that the line number in the GOTO statement on line 300 has changed.
Line 10 is not renumbered, since line 20 was specifi ed as starting point.
The new increment is 50.