nSc
(Search)
Searches for the nth occurrence of the character
c,
and moves the
cursor
to
that position.
If
you don't specify a value for
n,
the computer
searches for the first occurrence of the specified character.
If
character c
is
not found, cursor goes
to
the end of the line.
NOTE: The computer only searches through characters to the right of
the cursor.
For example, using the current form of line
100 type EDIT 100
(ENTER),
then press
mwo.
This tells the computer to search for
the second occurrence of the colon character. The display should
show:
100
FOR
I = 1
TO
15
STEP
.25:
NEXT
You may now execute one of the subcommands beginning at the
current cursor position. For example, suppose you want
to
add the
counter variable after the NEXT statement. Type I to enter the insert
subcommand, then type the variable name,
I.
That's all you want to
insert, so press
(SHIFT)CI) to escape from the insert subcommand
mode. The next time you list the line, it should appear as:
100
FOR
I = 1
TO
15
STEP
.25:
NEXT
I:
END
nKc (Search
and
"Kill")
Deletes all characters
up
to the nth occurrence of character
c,
and
moves the cursor
to
that position.
For example, using the current version of line
100, suppose we
wanted to delete the entire line
up
to the END statement. Type EDIT
100
(ENTER),
then type mooo. This tells the computer to delete all
characters
up
to the 2nd occurrence of the colon.
100
\FOR
1=
1
TO
15
STEP
.25:
NE>:T
1\
should
be
displayed. The second colon still needs to be deleted, so
type
D.
The display now shows:
100
\FOR
I = 1
TO
15
STEP
.25:
NE)<T
1\\:\
Press
(ENTER)
and
type LIST 100
(ENTER)
Line 100 should look something like this:
!00
END
n
(~)
Moves the cursor to the left
by
n spaces. If
no
number n is given, the
cursor moves back one space. When the cursor backspaces, all
characters
in
its path are erased from the display, but they are not
deleted from the program. Use the space bar to advance the cursor
forward and re-display the erased characters.
2-22