EasyManua.ls Logo

Texas Instruments TI-99/4A - Page 120

Texas Instruments TI-99/4A
204 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ASC - ASCII Value
ASC(
string-expression)
Tilt::
ASCII
value
fUllcliuu
will
give
yuu
tilt
ASClI
C.ha.fa.c.ter
code
which
corresponds
to
the
first
character
of
the
string
specified
by
the
string-expression. A list
of
the
ASCII
character
codes
for
tach
character
ill
the
stallll<U
tl
ellal
actel
sel
is
giveu
ill tilt:
Appendix.
Examples:
>NEW
>100 AS="HELlO"
>
11
0 C$="JACK SPRAT"
>120
C=ASC{C$)
>130
B$="THE
ASCI
I
VALUE
OF
"
>140
PRINT
8$;"H
IS";ASC(AS)
>150 PRINT
8S;"
J
IS";
C
>160
PRINT
8$;"N
IS";ASC("NAM
E")
>170
PRINT
8$;"
1
IS";ASC("1")
>180
PRINT
CHR$(ASC(U)
)
>190
EtliD
>RUN
THE
AS
CII
VALUE
OF
H
IS
72
TH
E
AS
C
II
VALUE
OF
J
IS
74
HIE
AS
CII
VALUE
OF
N
IS
78
THE
AS
ell
VALUE
OF
1
IS
49
H
**
DONE
**
CHR$
-
Character
CI
IR$(n
umcnc-cxprc:s:sion)
The
character
function
gives
yOll
the
character
corresponding
to
the
ASCII
character
code
specified
in
the
argument.
The
argument
is
the
value
obtained
when
the
numericexpression is
evaluated.
The
normal
rules
for
the
evaluation
of
numeric
expressions
are
used
here.
If
the
argument
specified
is
not
an
integer.
it is
rounded
to
obtain
an
integer.
A list
of
the
ASCII
character
codes
for
each
character
in
the
standard
character
set
is
given
in
the
Appendix.
If
the
argument
specified
is a
value
between
32
and
127.
inclusive.
a
standard
character
is given.
If
the
argument
specified
is
between
128
and
159. inclusive,
and
a
special
graphics
character
has
been
defined
for
that
value.
the
graphics
character
is given.
If
you
specify
an
argument
which
designates
an
undefined
character
(i.e.
not
a
standard
character
or
a
defined
grRphir.s
r.hRrHctP:r),
thp:n
thp:
chRrHctf'r
p;ivp:n
is
wha
IP:VP:f
is
in
memory
at
that
time.
If
you
specify
a
value
for
the
argument
which
IS
less
than
zero
or
greater
than
32767,
the
message
"BAD
VALUE'"
is
displayed,
and
the
program
stops
running.
II-IOO
>100
A$~CHRS(72)&CHRS(73)&CHR
S
(33)
:>110
PRINT
A$
>120
CALL
CHAR(97,"0103070F1F
3F7FFF")
>130
PRINT
CHR$(32);CHRS(97)
~140
PRINT
CHR$(3*lL)
>150 PRINT CHRS(ASC("t"ยป
>160
END
>RUN
HI!
~
*
+
**
DONE
**
>PRINT CHR$(33010)
*
8AD
VALUE
User's
Reference
Guide

Other manuals for Texas Instruments TI-99/4A

Related product manuals