EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #217 background imageLoading...
Page #217 background image
Chapter
10
I
BASIC
Keywords
LSET
Statement
LSET
field
name
=
data
Moves
data
to the direct access buffer and places
it
in
field
name,
in preparation for a PUT statement.
Field
name
is
a
string variable defined in a FIELD statement.
You must have used FIELD to set up buffer fields before using
LSET.
You must convert numeric values to string values before they are
LSET. See MKI$, MKD$, MKS$.
You use LSET to left-justify the variable in the field.
If
the field
is larger than the variable it
is
receiving, the field is filled with
blanks on the right.
If
the variable
is
larger than the field, char-
acters are truncated on the right. The complement command to
LSET is RSET.
See also Chapter
7,
“Files,” and OPEN, CLOSE, FIELD, GET,
PUT, and RSET.
Example
Suppose NM$ and
AD$
have been defined as field names for a
direct access file buffer. NM$ has a length
of
18
characters; AD$
has
a
length of 25 characters. The statements:
LSET
NM$
=
“JIM CRICKET, JR.”
LSET
AD$
=
“2000
EAST
PECAN
ST.”
set the data in the buffer as follows:
JIMMCRICKET,JR.BBM
2000MEASTMPECANMST.MMB~BM
Notice that filler blanks are placed to the right of the data
strings in both cases. If we use
RSET
statements instead of
LSET, the filler spaces are placed to the left. This is the only
difference between LSET and RSET.
215

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals