comp.lang.ada
 help / color / mirror / Atom feed
* Newbie: converting character to ascii representation
@ 2002-03-30 23:32 Catherine
  2002-03-31  2:56 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 2+ messages in thread
From: Catherine @ 2002-03-30 23:32 UTC (permalink / raw)


I was wondering how to convert a character
to an ascii value, or to a hexadecimal
or binary value.  

Sincerely,
Catherine



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Newbie: converting character to ascii representation
  2002-03-30 23:32 Newbie: converting character to ascii representation Catherine
@ 2002-03-31  2:56 ` David C. Hoos, Sr.
  0 siblings, 0 replies; 2+ messages in thread
From: David C. Hoos, Sr. @ 2002-03-31  2:56 UTC (permalink / raw)



----- 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
> 
> 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-31  2:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-30 23:32 Newbie: converting character to ascii representation Catherine
2002-03-31  2:56 ` David C. Hoos, Sr.

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