Download Print this page

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

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

Advertisement

DISK BASIC
statements (beginning with
rem
or
')
or
to
delete
all
spaces
between
basic
keywords. Spaces
inside
quotes
will
not
be
deleted.
Example
Your program
reads
as follows:
850 RESTORE; ON ERROR GOTO 800
'DOG
PROGRAM
8G0 READ
COMPANY*
'PET
STORE
870 PRINT
RIGHT$(C0MPANY$*2)
*:
GOTO 8S0
880 END
If
you want
to
delete the
Remarks
(lines
850 and
860), type
in
the
command:
CMD
n
C"
tR
and
the
program
will
now
read:
850 RESTORE:
ON
ERROR GOTO
800
8G0 READ
COMPANY*
870 PRINT
RIGHT$(C0MPANY$>2>
*:G0T0 880
880 END
If
you
then
wanted
to
delete the spaces,
type
in:
CMD"C"
*$
and
the
program would
read:
850
RESTORE
:
ONERRORGOTO800
8S0
READCOMPANY$
870
PRINTRIGHT$(C0MPANY$*2>
,:GOTO860
880 END
You
could
obtain the
same
results
by
typing:
CMD"C"
Note:
Always
provide
the closing
quotes
on
string
literals
in
your basic
program. Otherwise
cmd"C" may
not function
properly.
For example,
in
10
PRINT "THIS
IS
A
TEST"
the
second quote should be used even though
omitting
it
will
not
cause an
error.
CMD"D"
Display the Directory
of
a
Specified
Drive
"D:d"
6
is
the drive specification
97

Advertisement

loading