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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,356597c861982026,start X-Google-Attributes: gid103376,public From: Armin Subject: armin.schmidle@chnet.mail.abb.com Date: 1998/09/05 Message-ID: <35F15654.D096F0AC@swol.de>#1/1 X-Deja-AN: 388152429 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: 5 Sep 1998 16:09:34 +0100, 195.238.141.62 Organization: personal MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-09-05T00:00:00+00:00 List-Id: Question: --------- can anyone tell me how i can get mystring := "4.56" to become myfloat := 4.56 or mystring := "123" to become myinteger := 123 Answer: -------- it easy if you know how that's the manual 27 procedure Get(From : in String; Item : out Num; Last : out Positive); 28 Reads a real value from the beginning of the given string, following the same rule as the Get procedure that reads a real value from a file, but treating the end of the string as a file terminator. Returns, in the parameter Item, the value of type Num that corresponds to the sequence input. Returns in Last the index value such that From(Last) is the last character read. here is an example s : string (1..10) := "1.20 "; f : float l : integer; begin Get(From => s;, Item => f, Last => l);