EasyManuals Logo

Atari 400 User Manual

Atari 400
326 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 #107 background imageLoading...
Page #107 background image
Atari BASIC Reference
Gu
ide
105
DATA
(D.)
The
DATA
statement supplies a list
of
information
that
is
used in
a
program
through
READ statements. A
DATA
statement can
includ
e
numeric
values, string values,
or
both.
String variables
must
have been
dimensioned
before
being
read.
Data items are separated by commas.
Therefore
, string values
that contain commas
will
be read
as
separate data items. For
example,
DATA
DOE, JOHN
is
a
DATA
statement
with
two
data
items.
However
,
DATA
DOE. JOHN
has
only
one
item.
CONFIGURATION
DATA
a[b
1...
a$
,
b$J
Data must be read
into
the
correct
type
of
variable. A string
variable can accept data in any
form.
EXAMPLE
10
DIM
A$(20)
20
FOR
I = 1
TO
5
30
READ A$:? A$
40
NEXT
I
50
DATA
TOM
c.
,
25
,,
3 + 4 * %,247
RUN
TOM
C.
25
3 + 4 * %
247
The
preceding
example shows
correct
data
for
a string variable.
Notice
the
blank
line in the
output
that c
orresponds
to
the
two
commas in a row. This
is
read
as
a string value
with
no
characters
and l
ength
equal
to
zero.
If
only
4 data items had been
supplied
with
this
program
,
the
message: ERROR-6 AT LINE
30
would
have been displayed
to

Other manuals for Atari 400

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 400 and is the answer not in the manual?

Atari 400 Specifications

General IconGeneral
ManufacturerAtari
Model400
TypeHome Computer
Release Year1979
CPUMOS Technology 6502
CPU Speed1.79 MHz
ROM10 KB
Operating SystemAtari OS
KeyboardMembrane keyboard
RAM8 KB (expandable to 48 KB)
GraphicsANTIC and GTIA chips
Sound4 channels
DisplayRF output for connection to TV
StorageOptional cassette tape drive or floppy disk drive
PortsCartridge
Display Resolution320x192 (16 colors)

Related product manuals