Download Print this page

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

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

Advertisement

When
you want
to
add
to
the
end
of
a
file,
lof
tells
you where
to
start
adding:
100
IX=L0F(1)+1
'HIGHEST EXISTING RECORD
110 PUT
1
ill
'ADD
NEXT RECORD
MKD$,
MKI$,
and
MKS$
Convert
Data, Numeric-to-String
These
functions
change
a
number
to
a "string."
Actually
the
byte values
which
make
up
the
number
are
not
changed; only one
byte, the
internal
data-type
specifier,
is
changed,
so
that
numeric
data
can be placed
in
a
string variable.
That
is:
mkd$
returns
an
eight-byte
string.
mki$
returns a
two-byte
string.
mks$
returns a
four-byte
string.
Examples
LSET TALLY*=MKI*(IZ)
Field
name
tally$ would
now
contain
a
two-byte
representation of the
integer
i%.
A*=MKIt(8/I)
143

Advertisement

loading