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 #279 background imageLoading...
Page #279 background image
Chapter
10
I
BASIC
Keywords
The comma tells BASIC
to
tab between
A
and B, which creates
10
extra spaces in the file. Generally you do not want
to
use up
storage space this way,
so
you use semicolons instead
of
commas.
PRINT# 1,
A;
,
‘I*
This time BASIC writes the data as:
123.45,l .303
An INPUT# statement reads this as
2
separate fields.
If string variables contain commas, semicolons,
or
leading
blanks, enclose them in quotation marks. For example:
A$
=
CAMERA, AUTOMATIC
E$
=
102382
PRINT#
1,
A$;
E$
writes the data as:
CAMERAMMM~MMMM~~AUTOMATICl82382
An INPUT# statement reads this as
2
separate fields
A$
=
CAMERA
E$
=
AUTOMATIC182382
To separate these
2
strings properly in the file, write quotation
marks using the hexadecimal representation CHR$(34). For
example
:
PRINT# 1, CHR$(34);
A$;
CHR$(34);
E$;
CHRs(34)
BASIC writes the following image
to
the file:
“CAMERA, AUTOMATIC”1 02382”
The statement INPUT#
1,
A$,
B$
reads
“CAM-
ERA,AUTOMATIC” into A$ and
“102382”
into B$.
277

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