EasyManua.ls Logo

Tandy TRS-80 - Page 98

Tandy TRS-80
104 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPENDIX H.
basic word
magnSro
LOF(buffer)
37
Returns the highest numbered record of the buffer
you
specify.
(See OPEN for
buffer
numbers.)
FOR R
=
1 TO L0F(1)
LSET
field
name
=
data
48-50
Left justifies the data within the
field
name you specify. If the
data is larger
than the field, the RIGHT characters will
be
truncated
(chopped off).
LSET A$
=
"BANANAS" LSET B$
=
T$
MERGE
filename,
R
53-54
Loads
a
program
file
from disk and merges it
with the existing program
in
memory. If
you
include R, the Computer will immediately
run the program
after merging it. (See
the format
for
filenames above.) The
disk
program
file
cannot be MERGEd unless it was SAVEd with the A (ASCII)
option.
MERGE "SUB/BAS" MERGE "NEW". R
MKN$(number)
50
Converts a
number
to a 5-byte coded string, for storage in
a
formatted
disk file.
LSET B$
=
MKN*(53B78310)
OPEN "mode"
#
buffer,
filename,
record
length
26-28,
Opens
a
place in memory called
a
buffer
which will communicate
data to and
29-31,
from a certain device. The
buffers
and the devices they communicate
with are:
33-38
screen or printer (it is not necessary
to
open this buffer)
-
1
tape
recorder
-2
printer
1-15
disk drive
The communication modes you can use are:
I inputting data from
a
sequential
access file
OOutputting data to a sequential
access file
DInputting or outputting data
to a
direct
access file
The
filename you use
should
be in the format defined
above. If you do not give
filename
an extension, the Computer will give it
the extension DAT.
If
you
are opening communication
to
a
direct
access file, you can also specify
the record length. If
you
don't, the record
length will
be
256
bytes.
OPEN "D" f
«1
. "FILE" , 15
OPEN "I" »
*2
"CHGE/DAT"
PRINT #
buffer,
data list
27-28
PRINTs the data to the
buffer.
(See
OPEN
for
buffer
numbers.) You
may use a
comma or
a
semi-colon
to separate each item in the
data list.
PRINT
«1
. "DATA"
PRINT
#
buffer,
USING
format;
data list
45-46
Prints
data to
the
buffer
using
the
format you specify. The
format
is
a
string
which can either specify
a
numerical
or string
format,
numerical
formats
may consist of any
of the following:
#
sets the field of
a
number
formats
a decimal point
88

Related product manuals