EasyManua.ls Logo

Sharp PC-1500 - Chrs

Sharp PC-1500
169 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
Loading...
A
ll
and more about Sharp PC
-1
500 at http://www.PC-1500.info
{
"character"
ASC char varia
bl
e
nam
e
The
ar
gumen
1t
in
th
is
function
is
any character string
or
a character
st
ri
ng
variable na
me.
The
value return
t!
d by
this
function is
th
e
CO
(responding ASC
II
code for the fi
rs
t character of the
spe
ci fied string.
E
xa
mple 1:
Ou1pu
t:
L
10
LET XS =
"PATTI"
20 LET A = ASC
XS
30
PRINT A
RVl'l
In
the
above
exa
mple
XS
is
assigned the
va
l
ue
o.f the character string "PAT
TI"
. Tho ASC fun
ct
ion
takes the first c
lil
aracter IP) and converts it
to
its ASCII code (801.
Example
2:
JO
PR
IN
T ASC
"K
"
Output:
OUN
75
ASC
"K
" returns t
he
ASCII code for " K" whi
ch
is 75.
C.2.
CHR$
CHRS
is
the
com
pl
eme
nt
of
the ASC f
unct
i
on.
The CHRS f
unctio
n
takes
an
ASCII decimal
code, from 0 through 127, and returns t
he
character string
eq
ui
va
l
ent
. (Note:
Some
cod
es
represent specia·I characte
rs
\V
hich
do
n
ot
print)
E
xamp
le
1:
Ou
tp
ut:
l
ASCII
de
cimal
c
od
~
CH
R$
nu
meric
variable
10
PRINT (CHR$
67
)
+"OP"
AUN
73
Do
not sale this PDF
!!!

Table of Contents

Other manuals for Sharp PC-1500

Related product manuals