comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: HELP HELP HELP PLEASE Ordinal Function
Date: 1998/12/14
Date: 1998-12-14T00:00:00+00:00	[thread overview]
Message-ID: <m3hfuz9y14.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36766e02.12725046@news.smartlink.net

John_Lin@paramount.com (Johnny) writes:

> Does anybody know the function to get the ASCII # for symbols in
> ADA95?  Thnx

declare
  C : Character := ...;
begin
  <ascii#> := Character'Pos (C);
end;

You can go the other way by using Character'Val (<ascii#>);





  parent 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
1998-12-14  0:00 ` Matthew Heaney [this message]
1998-12-14  0:00   ` Johnny
1998-12-14  0:00     ` Markus Rogawski
1998-12-14  0:00     ` Matthew Heaney
1998-12-14  0:00     ` Johnny
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