Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 106

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

DISK BASIC
This
command
finds
all
occurrences of
a reserved
word
or other
string
literal
in
the resident
program.
The
"
finds"
are
listed
on
the display
as five-digit line
numbers.
To
search
for
any
basic
reserved
word
(including reserved arithmetic operators),
use
the
keyword
as-is.
To
search
for
anything
else
(including
variable-names
and
text),
enclose
the
text inside
quotes.
For example, suppose
you
have
the
following
program
in
memory:
10
PRINT "THIS
IS
A
TEST"
20
INPUT "PRESS
<EIMTER>
FOR THE NEXT PRINT MESSAGE";
Z$
30
A
=
A
+
1
40
PRINT
"+
++4-
+
+
+"
CMD
"X"
t
PRINT
will find
all
occurrences of
print,
except
for
cases
where
print
was
part
of
a
quoted
string: lines
10
and
40.
CMD
"X"
*
"PRINT"
will find
all
occurrences of
"print"
as
a
string
literal:
line
20.
CMD
"X"
,
+
will
list
line
30, but
CMD
"X%
"
+
"
will
list
line
40.
CMD
"X"
*
"A"
will
list
lines 10,
20,
and
30.
Notice
that
variables
and
text
are
both
treated
as string
literals.
CMD
"Z"
Duplicate
Output
to
Video
and
Printer
€wrv
"switch"
switch
is
either
on
or
off.
switch
must
be enclosed
in
quotation
marks,
This
command
enables or
disables dual video/printer output.
While
the
function
is
"on,"
all
video output
is
copied
to
the
printer,
and
all
printer
output
is
copied
to
the video.
(The
printer
must be
on-line
when
you
turn
dual output
"on.")
Video and
printer
output
may
differ
due
to intrinsic
differences
in
the printer
and
video
devices.
Examples
CMD
"Z"
»
"ON"
Turns dual
video/printer
output
on.
105

Advertisement

loading