TRS-80
MODEL III
wD (Delete)
Tells Computer
to
delete the
specified number
n
characters
to
the right of the
cursor. The deleted characters
will
be enclosed
in exclamation marks
to
show
you
which characters were affected. For example , using line 1
00,
space over to the
PRINT command statement:
100FORI
=
1
TO10STEP.25:b
Now type 19D. This
tells the Computer
to
delete 19 characters
to
the right of the
cursor. The display should show something like this:
100FORI
=
1TO10STEP.25:!PRINTI,l
[2,
1
[3
:!
When you
list the complete line,
you'll see
that the PRINT statement has been
deleted.
wC (Change)
Tells the Computer
to
let you change the specified
number of characters beginning
at the current cursor position. If you type
C
without a
preceding
number, the
Computer assumes you want
to
change one character. When you have entered n
number of characters, the Computer returns you
to
the Edit Mode (so you're not in
the nC Subcommand). For example, using line
100,
suppose you want
to
change
the final value of the FOR-NEXT loop, from
"
10"
to
"
15"
.
In the Edit Mode, space
over
to just before the
"0"
in
"10".
100
FOR
1
=
1
TO
1b
Now type
C.
Computer will assume you want to change just
one character.
Type
5
,
then hit
L.
When
you
list the line, you'll see that the change has been made.
100 FOR 1
=
1 TO 1
5
STEP .25 : NEXT : END
would be the current line if you've followed the
editing
sequence
in this chapter.
The
©
does not work
as a
backspace under the
C
command in Edit mode
.
Instead
,
it
replaces the character
you
want
to
change with
a
backspace.
So it
should not
be
used.
If you
make
a
mistake while typing in
a
change, Edit the line again
to
correct
it,
instead
of using
©.
200