comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Ascii keyword??
Date: Fri, 16 Feb 2001 17:22:12 -0600
Date: 2001-02-16T23:21:44+00:00	[thread overview]
Message-ID: <96kcm8$gcq$1@hobbes2.crc.com> (raw)
In-Reply-To: 3A8D72D4.BBB57470@blueyonder.co.uk

What you need is the language-defined function
Character'Val (<integer_expression>) to convert
a number in the range 0 .. 255 to its corresponding
character, and the language-defined function
Character'Pos (<character_value>) to obtain its
position in the character set -- 0 .. 255;

E.g., Character'Val (65) returns 'A', and
Character'Pos ('A') returns 65.

"Richard" <richard-blunt@blueyonder.co.uk> wrote in message
news:3A8D72D4.BBB57470@blueyonder.co.uk...
> ok am new to this ada thing, so  is there a package and/or keyword i can
> use to convert a decimal number to a acsii character and vice versa
>
>
> thanks :)
>





  parent reply	other threads:[~2001-02-16 23:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-16 18:34 Ascii keyword?? Richard
2001-02-16 18:46 ` Pascal Obry
2001-02-16 18:52 ` Marin David Condic
2001-02-16 19:29 ` Lao Xiao Hai
2001-02-16 23:22 ` David C. Hoos, Sr. [this message]
2001-02-17  0:54   ` Jeffrey Carter
2001-02-17  4:51   ` Lao Xiao Hai
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox