Download Print this page

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

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

Advertisement

DISK BASIC
name:
JIM
CRICKET*
JR.
address:
2000 EAST PECAN
ST,
This
is
accomplished with
the
two
statements:
LSET NM$="JIM CRICKET
»JR,
"
LSET
AD$="2000 EAST PECAN
ST.
"
This
puts the data
in
the buffer
as
follows:
JIM
CRICKET.
JR.
Z000
EAST PECAN
ST.
NM$
AD$
Note
that
filler
spaces
were
placed
to
the right
of
the data
strings in
both
cases.
If
we
had used rset
instead
of
lset
statements, the
filler
spaces
would
have
been
placed
on
the
left.
This
is
the
only
difference
between lset and
rset.
For example:
RSET NM*="JIM CRICKET.
JR.
"
RSET
AD$="2000 EAST PECAN
ST.
"
places data
in
the
fields
as follows:
JIM
CRICKET.
JR.
2000 EAST PECAN
ST,
NM$
AD$
If
a
string
item
is
too
large
to
fit
in
the specified buffer
field,
it
is
always
truncated
on
the
right.
That
is,
the extra characters
on
the right are ignored.
CVD, CVI
and
CVS
Restore
String
to
Numeric
Form
vrnfexi
iiititi
exp$
defines
an
eight-character
string;
exp$
is
typically
the
name
of
a
buffer
field
containing a
numeric
string.
If
im(exp$)<S,
an
illegal
function call
error occurs;
if
im(exp$)>&,
only the
first
eight
a
two-character
string;
exp$
is
typically
the
name
of
a buffer
139

Advertisement

loading