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,c7932390dcbd43b7 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: I'm Stumped ... Date: 1997/04/28 Message-ID: <3364AA58.1881@gsfc.nasa.gov>#1/1 X-Deja-AN: 237920934 References: <33638FBE.715C@usa.net> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1997-04-28T00:00:00+00:00 List-Id: Ben Carter wrote: > > Could anyone point me in the direction of where > I could find examples of code or at least explain > a method to convert a string into an integer? > > Is it possible to take a string with the value : > '123' > and turn it into the integer 123? > Section 3.5 of the LRM discusses Scalar types, including the attribute 'Value: (52) S'Value S'Value denotes a function with the following specification: (53) function S'Value(Arg : String) return S'Base (54) This function returns a value given an image of the value as a String, ignoring any leading or trailing spaces. There are many other useful attributes in Ada. > Thanks For your time ... > -- > ,---------------------------------------------- > | Ben Carter > +---------------------------------------------- You're welcome -- - Stephe