Download Print this page

Radio Shack TRS-80 Owner's Manual page 161

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

Advertisement

D
ISK
BASi
When
you want
to
add
to
the
end
of
a
file,
lof
tells
you where
to
start
adding:
100
I%=L0F(i)+i
'HIGHEST EXISTING RECORD
110 PUT i.II
'ADD
NEXT RECORD
MKD$,
MKI$,
and
MKS$
Convert
Data, Numeric-to-String
nmexp
is
evaluated as
a doabie-pirscislop nyrnoer-
fractional
component
in
nmexp
Is
truncaled.
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:
mkds
returns
an
eight-byte
string.
mki$
returns
a
two-byte
string.
mks$
returns
a four-byte
string.
Examples
LSET TALLY$=MKI$(I%)
Field
name
tallys would
now
contain a
two-byte
representation
of
the
integer
i%.
A*=MKI*(8/I>
rKS:byf¥mi
T
^i^r~T'::,;
.
..;.:.::.•...:_
..."
.
.
-
143

Advertisement

loading

This manual is also suitable for:

Model iii