Download Print this page

Radio Shack TRS-80 Owner's Manual page 157

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

Advertisement

DISK
BASH
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.
2000 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$
AB$
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, C¥I
and
CVS
Restore
String
to
Numeric
Form
:•
•';-
•:••
'•
-i^^^i
:
;
i
i!'-w-'; r&-h.- a
'
.^iax^l
''.
m
.:<-..
,-
"'v-'-i.li<
r
1.
:
-.^(<»rt:
>'-.
-:'7
'-.f;
i:
it
'':.*'
characters are used,
f\m
mmsmm
a
numeric
string.
If
ukfsxpSh
2,
m
aiiosi
fungtsor
m\
error occurs;
If
imisxpS}
I-
only the
first
two
characters are
139

Advertisement

loading

This manual is also suitable for:

Model iii