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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d4g2000yqa.googlegroups.com!not-for-mail From: Chrono Newsgroups: comp.lang.ada Subject: Re: reference to a name variable Date: Tue, 28 Jul 2009 06:51:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <9129a8e6-1aba-430c-bfbc-3154026697b8@i18g2000pro.googlegroups.com> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1248789078 29870 127.0.0.1 (28 Jul 2009 13:51:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 28 Jul 2009 13:51:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d4g2000yqa.googlegroups.com; posting-host=201.7.145.1; posting-account=n9Sa1woAAACZc_iwSjaEkj9Lnt-XVrSr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7379 Date: 2009-07-28T06:51:18-07:00 List-Id: On 24 jul, 08:03, Stephen Leake wrote: > Pablo writes: > > I have an integer variable which I'd like to set dinamically equal to > > a value of a variable that I don't know at priori. Say as: > > I want to set My_Integer = IntegerValue(MyString), > > My_Integer := Integer'Value (MyString); > > -- > -- Stephe Stephe, the idea is this really, instead of MyString is not a number string, it's a string whose name is the name of a integer variable, and it's the value of this variable what I want. This would work if I had a string like "123", so Integer'Value("123") would give me 123. When I try with a real naming string (instead of a number string), program keeps waiting for an entry so it suspends itself...