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 #71 background imageLoading...
Page #71 background image
Pieces
of
Strings
61
LEN(string)
gives
the
number
of
characters
in
a
string.
ASCII
code is
used
by
the
Atari
to
symbolise
letters.
There
is a
table
of
the
ASCII codes for
the
characters
in
Appendix
10.
CHR$
converts
a code
number
to
the
equivalent
character:
PRINT
CHR$(65)
displays
Ase
gives
the
ASCII code for a
character:
PRI NT ASC (
II
A
II
)
displays
STR$
turns
a
number
into
a
string
of
number
characters:
10
A$
STR$(123)
20
PRINT
A$
V
AL
evaluates
the
numerical
characters
In
a
string:
PRINT
VAL("123ABC789")
displays
(123'.
COMPARISONS.
Strings
can
be
compared
using
IF
...
THEN
and
the
relational
operators
= <
and
>.
This
is
useful
for
testing
inputs
and
sorting
strings.

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