EasyManuals Logo
Home>Atari>Desktop>XL

Atari XL User Manual

Atari XL
262 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 #70 background imageLoading...
Page #70 background image
60
340
990
1000
1010
1020
1030
1040
The
Ateri
XL
Handbook
END
REM
DISPLAY
STRINGS
PRINT'" "
FOR
P=l
TO 20
PRINT
ALL$(P*20,
P*20+19)
NEXT
P
RETURN
This
program
works
in
the
same
way
as
the
sorting
program
at
the
end
of
Chapter
5. You
can
input
twenty
strings,
which
may
contain
more
than
one
word.
The
"array"
string
ALL$ is
not
used
very
efficiently.
The
first
19
characters
are
not
used
at
all.
There
is no
reason
why,
with
a
bit
of
extra
calculation,
these
characters
should
not
be
used.
Remember
that
there
is no
character
at
ALL$(O) -
if
you
try
to
use
this
position
the
message
ERROR-
9
will
be
displayed
and
the
program
will
stop.
If
you
run
this
program
a few
times
you
will
discover
how
effective
string
sorting
can
be.
Notice
that
any
characters
will be
sorted
into
ASCII
order,
so
strings
containing
characters
such
as
*/@£?%
and
/@$&)#
will
be sorted.
You
will
find
that
lower
case
letters
are
treated
as
completely
different
from
upper
case
letters,
because
of
course
they
are
represented
by
different
codes,
and
the
Atari
is
interested
only
in
the
codes.
The
lower
case
letters
have
higher
codes
than
the
capitals,
so
they
appear
at
the
end
of
the
sorted
list. (You
can
switch
in
and
out
of
lower
case
by
pressing
the
CAPS
key).
SUMMARY
A
string
is
a
sequence
of
characters.
These
can
be
stored
in
string
variables,
which
are
distinguished
by $
after
the
variable
name.

Questions and Answers:

Question and Answer IconNeed help?

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

Atari XL Specifications

General IconGeneral
BrandAtari
ModelXL
CategoryDesktop
LanguageEnglish

Related product manuals