EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #62 background imageLoading...
Page #62 background image
SEARCH
Format
SEARCH
[/P]<text
data>
Abbreviated
Format
Explanation
Example
SE.
The
SEARCH
command
searches
the
BASIC
program
in
memory
for
lines
which
contain
the
character
string
specified
in
<text
data>
and
displays
any
found
lines
on
the
screen.
When
specifying
a
double
quotation
mark
(’’)
in
<text
data>,
use
CHR&(34).
Display
of
matching
lines
can
be
suspended
by
pressing
the
SPACE
bar.
Pressing
the
SPACE
bar
again
will
resume
display.
To
terminate
the
SEARCH
command,
press
+
.
The
/P
option
directs
the
output
of
the
SEARCH
command
to
the
printer.
SEARCH
‘ABC’?
2...
.sccsccccss
Searches
for
then
displays
on
the
screen
the
program
lines
that
contain
the
character
string
‘‘ABC’’.
SEARCH
‘‘PRINT’’
+CHR$(34)
+
‘’A’’
+
CHRS(34)
.....
Searches
for
program
lines
that
contain
PRINT
“‘A’’.
RENUM
Format
Explanation
Example
RENUM
[<new
line
number
>]
[,<old
line
number>]
[,<increment>]
Abbreviated
Format
REN.
The
RENUM
command
renumbers
the
lines
of
a
BASIC
program.
When
this
com-
mand
is
executed,
note
that
line
numbers
referenced
in
branch
statements
such
as
GOTO,
GOSUB,
ON~
GOTO,
and
ON~
GOSUB
are
also
reassigned.
RENO
Mi
asrncreperrecscenresnianee
Renumbers
the
lines
of
the
current
program
in
memory
so
that
they
start
with
10
and
are
incremented
in
units
of
10.
RENUM
100
\siscvsswsaevercensavs
Renumbers
the
lines
of
the
current
program
in
memory
so
that
they
start
with
100
and
are
increment-
ed
in
units
of
10.
RENUM
100,50,20..........-.
Renumbers
lines
of
the
current
program
in
memory,
which
starts
at
line
number
50.
Line
number
50
is
renumbered
to
100,
and
subsequent
line
numbers
are
incremented
in
units
of
20.
(Before
renumbering)
(After
renumbering)
50
A=1
100
A=1
60
A=A+1
120
A=A+1
70
PRINT
A
140
PRINT
A
100
GOTO
60
160
GOTO
120
Note:
When
specifying
the
new
and
old
line
numbers,
the
new
line
number
specified
must
be
larger
than
the
old
line
number.
Note
that
an
error
will
result
if
execution
of
this
command
results
in
the
generation
of
a
line
number
which
is
greater
than
65535.
6-5

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals