BASIC
nSc (Search)
Tells the Computer to search
for
the wth
occurrence of the character c, and move
the
cursor
to that
position.
Ifyou don't
specify
a
value for n, the Computer will search
forthe first occurrence of the specified character. If
character
c is notfound,
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)
)
and
then
hit
2S:
. This tells the Computer to
search
for
the second occurrence of the
colon
character. Display should
show:
1
00
FOR I
=
1 TO
1 5
STEP .25 : NEXTb
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
! to enter the Insert
subcommand, then type the
variable name, I.
That's all you
want
to insert, so hit SHIFT
d)to
escape from the Insert
subcommand.
The
next time you list the line ,
it
should
appear as:
1
00
FOR I
=
1 TO 1
5
STEP .25 : NEXT
I
:
END
nKc (Kill)
Tells the Computer
to
delete all characters up to the
nth occurrence of character
c,
and move the cursor to that
position
. For
example
,
using the current version of line
100,
suppose we want to delete the entire
line
up to
the END statement. Type EDIT
100
(
(ENTER)
),
and then
type
2K:. This tells the
Computer
to
delete all characters
up
to
the
2nd
occurrence
of
the colon. Display should
show:
100 IFOR I
=
1 TO 15 STEP .25 :
NEXT !!
The second colon still needs to be deleted , so
type
D.
The Display
will now show:
100 IFOR I
=
1 TO 1
5
STEP .25 :
NEXT !!!:!
Now hit CENTER
)
and
type
list 100
(
CENTER) ).
Line 100
should look something like this:
100 END
201