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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e2413c4fccb33dbc X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: determining input data type References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1224294060 12.201.97.213 (Sat, 18 Oct 2008 01:41:00 GMT) NNTP-Posting-Date: Sat, 18 Oct 2008 01:41:00 GMT Organization: AT&T ASP.att.net Date: Sat, 18 Oct 2008 01:41:00 GMT Xref: g2news2.google.com comp.lang.ada:8165 Date: 2008-10-18T01:41:00+00:00 List-Id: jedivaughn wrote: > Hi, How is the best way to determine the type of input. I have the > input coming in through a string but if the contents of the string is > an integer then I want to convert it to such. This seems like it > should be very easy to do but I can't seem to find out how to do it > any where. You could use Integer'Value. If it succeeds, than it represents an Integer. If it fails, then it doesn't. -- Jeff Carter "Why don't you bore a hole in yourself and let the sap run out?" Horse Feathers 49