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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c79b932e1a23ed9 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Type casting question Date: 1999/12/21 Message-ID: <83n9qq$8bq$1@nnrp1.deja.com>#1/1 X-Deja-AN: 563197679 References: <385E87D8.2B44B800@tridsys.com> X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Dec 21 07:22:05 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-12-21T00:00:00+00:00 List-Id: In article <385E87D8.2B44B800@tridsys.com>, comp.lang.ada@ada.eu.org wrote: > Suppose I have a string xxx which has the some value in it, > How can I convert that xxx into the above declared val1? > I have to copy xxx into val1. I need to somehow do the > type casting for the above. Don't use the term type casting, it is never appropriate in Ada, and in fact what you want has nothing to do with type casting in say the C sense. What you want is conversion routines, provided in Ada using the 'Value and 'Image attributes, look them up in any Ada book! Sent via Deja.com http://www.deja.com/ Before you buy.