Sharp PC-1403 Operation Manual page 134

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

128
The REN UM command cannot
be executed
if the
number
of
l
i
nes
to be renumbered
exceeds 65279,
or if
the
specification
requires a
change in
the
execution
order
of
program lines
(for example, an attempt is made to
execute RENUM
15, 30
when
three program
lines
10,
20,
and 30
exist).
It will
take
a little while to
complete the
execution
of
REN UM on
a large program.
lf you
press the
~
key to
interrupt the
program
while
one asterisk
(*) is
appearing at the
rightmost end of the
display,
the
program will return to the
original
condition before the
execution of REN
UM. However,
this
interruption
by
the
~
key
will
be
ignored when
two
asterisks
(**) are on the
display.
''Mi
This
command
renumbers
old
line numbers
in
the
specified step
increments, starting
from the
specified
new line
number.
If
the
values
of new
line number
and increment
are
omitted,
rn
is
assumed
for
both.
If
old
line
number
is omitted,
renumbering
starts
from
the
first line of
the program. If
the
specified old line number is
not
found,
an
error
occurs.
Example
1
:
RENUM
Renumbers all the program
lines
in
increments of 10 steps
from
line 1 O.
Example
2:
RENUM
100, 50, 10
Changes old line number 50
to new
line
number 100
and
renumbers subsequent line
numbers in increments
of
10
steps.
The RENUM command
automatically
changes
all
line number references following
GOTO,
GOSUB,
IF-
THEN,
ON-GOTO,
ON-GOSUB,
RESTORE,
etc., to
reflect the new line
numbers. In this
case,
however,
an error will result if expression
(e.g., GOTO
2*50).
If an error
occurs due to such incorrect
line number reference,
renumbering of the
incorrect line number
cannot
be
effected by
RENUM.
In such a
case,
temporarily rewrite the
command
containing an
incorrect line
number to
a
REM
statement,
and correct it
(perhaps,
change
to
ON-GOTO)
after
the
execution of the
RENUM
command.
iµm+Mi
The RENUM command is
used to
renumber program
lines.
This
command
is
effective
for
manual
operation in the PRO
(Program)
mode.
1 RENUM [new line
number][,[old line
number][,incrernent]]
Abbreviations: REN.,
RENU.
Commands
REN UM

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents