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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d6c4537cf651710f X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Type Conversion Date: 1997/12/09 Message-ID: <348DC530.1F76@gsfc.nasa.gov>#1/1 X-Deja-AN: 296727221 References: Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1997-12-09T00:00:00+00:00 List-Id: Nick Davies wrote: > > Hi guys, > > Can you help? I'm trying to do this > > Token_Temp := Token_Temp & String(Current_Character); --Type Conversion > needed Actually, no type conversion is needed. The '&' operator comes in several flavors; one of them concatenates array elements onto arrays. This will almost work: Token_Temp := Token_Temp & Current_Character; It still doesn't work because Token_Temp is a fixed length string, and you are trying to make it bigger. Since this seems to be homework, I'll direct you to your prof/TA for more help. > Using:- > > Token_Temp : String (1..20) := (others => ' '); > Current_Character : Character; > Thanks in advance, No problem, but please consult your local resources first, or let us know that they have failed. > > Nick > > ************************************ > Nick Davies > 2nd Year Comp.Sci > > e-mail : ndavies@comp.brad.ac.uk > ************************************ -- - Stephe