From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,727dcca15457056e X-Google-Attributes: gid103376,public From: Ehud Lamm Subject: Re: HELP HELP HELP PLEASE Ordinal Function Date: 1998/12/14 Message-ID: #1/1 X-Deja-AN: 422214590 References: <36766e02.12725046@news.smartlink.net> Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: The hebrew University of Jerusalem Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-12-14T00:00:00+00:00 List-Id: 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