comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Newbie: converting character to ascii representation
Date: Sat, 30 Mar 2002 20:56:45 -0600
Date: 2002-03-30T20:56:45-06:00	[thread overview]
Message-ID: <mailman.1017543422.4336.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 1fe0bf7f.0203301532.34dc6a20@posting.google.com


----- Original Message ----- 
From: "Catherine" <catherine_lu78@hotmail.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: March 30, 2002 5:32 PM
Subject: Newbie: converting character to ascii representation


> I was wondering how to convert a character
> to an ascii value, or to a hexadecimal
> or binary value.  
> 
Wonder no more.  You use the 'pos attribute of the type
Character -- e.g to convert the letter 'A' to an integer
and assign the value to the integer varibale named C, you
would write C := Character'Pos ('A');

David Hoos 

> Sincerely,
> Catherine
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 
> 





      reply	other threads:[~2002-03-31  2:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-30 23:32 Newbie: converting character to ascii representation Catherine
2002-03-31  2:56 ` David C. Hoos, Sr. [this message]
replies disabled

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