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 #79 background imageLoading...
Page #79 background image
Advanced Atari
BASIC
77
the
following
program
, a substring is used
to
change
X$
from
"JOHN JOH
NSON"
to
"JOHN J
ACKSON".
100
DIM
X$(15)
200
X$
=
"JOHN
JOHNSON"
300
X$(6,1
2)
= "JACKSON"
400
PRINT
X$
500
END
RUN
JOHN JACK
SO
N
If an e
rror
occurs
with
a s
ub
st
ring
specificat
ion
,
error
number
5
will
be
di
sp
layed.
String Concatenation
The process
of
joinin
g
together
one
or
more
strings
is
known
as
co
ncate
nation
.
Th
e
LEN
function
is
used in
co
njun
ct
ion
with
substrings in concatenation.
Th
e
LEN
function
is
us
ed
to
return
the l
engt
h
of
its string arg
um
en
t.
L
EN
u
ses
the
following
config
ur
ation.
LE
N (string)
The
following
program
illu
strates
st
ring con
ca
tenation in Atari
BASIC.
100
DIM
X$(15),
Y$
(15)
150
X$
= '''':Y$ =
""
200
X$
= "J
OHN"
300
Y$
= "JOHNSON"
400
X$(
LEN
(X$)
+
1)
=
Y$
500
PRINT
X$
600
END
RUN
JOHNJOHN
SON
The actual concatenati
on
takes place in
lin
e 400. Here,
Y$
is
added
onto
the
end
of
X$
to
form
a
new
X$.
Notice
that 1
was
added
to
the
result
of
LEN(X$) . This
ca
u
ses
Y$
to
be
added
beginning
at
the
first
blank
space
following
the
end
of
the
original
X$.

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