From: tmoran@bix.com
Subject: Re: translate character 2 ascii
Date: 2000/05/12
Date: 2000-05-12T00:00:00+00:00 [thread overview]
Message-ID: <X9OS4.526$4L1.385603@news.pacbell.net> (raw)
In-Reply-To: U5GS4.3578$F46.41867@news.infostrada.it
What's the difference between a character 'x' and an ascii 'x'?
If you are talking about position in the list of characters,
n : integer := character'pos('x'); -- set n to 120
c : character := character'val(121); -- set c to 'y'
It's in Appendix K, though I grant it doesn't exactly jump out at you.
next prev parent reply other threads:[~2000-05-12 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-11 0:00 translate character 2 ascii davdenic
2000-05-11 0:00 ` Ted Dennison
2000-05-11 0:00 ` Ted Dennison
2000-05-11 0:00 ` davdenic
2000-05-11 0:00 ` DuckE
2000-05-12 0:00 ` tmoran [this message]
2000-05-12 0:00 ` Ted Dennison
2000-05-12 0:00 ` Ehud Lamm
2000-05-13 0:00 ` davdenic
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox