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=-0.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1080b3719d9972b7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-30 18:57:03 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!deine.net!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Newbie: converting character to ascii representation Date: Sat, 30 Mar 2002 20:56:45 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <1fe0bf7f.0203301532.34dc6a20@posting.google.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1017543422 69308 137.194.161.2 (31 Mar 2002 02:57:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 31 Mar 2002 02:57:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:21906 Date: 2002-03-30T20:56:45-06:00 ----- Original Message ----- From: "Catherine" Newsgroups: comp.lang.ada To: 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 > >