Download Print this page

Radio Shack TRS-80 Owner's Manual page 115

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

Advertisement

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
860 READ
COMPANY*
'PET
STORE
870 PRINT
RIGHT$(C0MPANY*»2)»: GOTO
8G0
880 END
If
you want
to
delete the
Remarks
(lines
850 and
860), type
in
the
command:
CMD"C"
»R
and
the
program
will
now
read:
850 RESTORE:
ON
ERROR GOTO 800
8G0 READ COMPANY*
870 PRINT
RIGHT*(C0MPANY*»2>
t:G0T0 8G0
880 END
If
you
then
wanted
to delete
the spaces, type
in:
CMD"C"
»S
and
the
program would
read:
850 RESTORE
:
ONERRORGOTO800
860
READCOMPANY*
870
PRINTRIGHT*(C0MPANY*»2)
,:GOTO8G0
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'
9
Display the Directory of a
Specified
Drive
cmd"d:«F'
dis
the drive specification
97

Advertisement

loading

This manual is also suitable for:

Model iii