comp.lang.ada
 help / color / mirror / Atom feed
From: Ehud Lamm <mslamm@mscc.huji.ac.il>
Subject: Re: HELP HELP HELP PLEASE Ordinal Function
Date: 1998/12/14
Date: 1998-12-14T00:00:00+00:00	[thread overview]
Message-ID: <Pine.A41.3.96-heb-2.07.981214205618.38542B-100000@pluto.mscc.huji.ac.il> (raw)
In-Reply-To: 36766e02.12725046@news.smartlink.net

On Mon, 14 Dec 1998, Johnny wrote:

> Does anybody know the function to get the ASCII # for symbols in
> ADA95?  Thnx
> 
If this is not in the FAQ, it should be there.

Remember that in Ada the character type is simply an enumeration type,
ordered by ASCII values (what happens on EBCDIC, I don't know). So you can
use the attributes enumeration types support. Like character'pos('A')

Enjoy

Ehud Lamm     mslamm@mscc.huji.ac.il
http://www2.cybercities.com/e/ehud/ada   Ada & SE resources





  reply	other threads:[~1998-12-14  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-14  0:00 HELP HELP HELP PLEASE Ordinal Function Johnny
1998-12-14  0:00 ` Ehud Lamm [this message]
1998-12-14  0:00 ` Matthew Heaney
1998-12-14  0:00   ` Johnny
1998-12-14  0:00   ` Johnny
1998-12-14  0:00     ` Matthew Heaney
1998-12-14  0:00     ` Markus Rogawski
1998-12-14  0:00     ` Johnny
1998-12-14  0:00     ` Johnny
replies disabled

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