Radio Shack TRS-80 Operation Manual page 46

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

LINE INPUT string var
.
.
.
.
.
.
.
.
.
.
.
.
Inputs a line from keyboard;
I
ENTER
I
ends
input.
LINE INPUT A$
LINE INPUT
"ENTER
YOUR NAME?";N$
LINE INPUT#b,string var
Inputs an entire line from sequential file
through buffer
b
to string variable named.
LOAD'' filename''
LOC(b)
LOF(b)
LSET string
var
MERGE
''
filename'
'
LINE INPUT#2,A$
Loads a program file from disk. (Refer to
your Disk System Owner's Manual for
information on filenames.)
LOAD"BLITZ"
Gets current record number of file
associated with buffer
b.
PRINT LOC(2)
Gets the number of the last record of the
file associated with buff er
b.
Q =LOF(5)
Puts string into random access field with
extra spaces at the right.
LSET NAME$
=
"
JOHN
"
Merges disk program with the program in
the computer memory. Disk program
must be in ASCII format.
MERGE
"
BLITZ"
MID$(string var,c,d)
=
string var
.
. .
.
.
.
Replaces portion of one string with
another string. First number is starting
position, second is length.
MID$(A$,3,
2)
=
"NO"
MKD$(x)
.
.
.
.
. .
. .
. .
. .
.
. .
. .
.
.
.
. .
. . .
Prepares double precision number x for
disk write
(random
access).
LSET C$
=
MKD$(C#)
MKI$(n)
.
.
. .
.
.
. .
.
.
.
. . .
.
.
.
. .
. .
. .
.
. .
Prepares integer n for disk
·write (random
access).
LSET C$ =MKl$(C %)
28

Advertisement

Table of Contents
loading

Table of Contents