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,a7a968785d85918b X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Splitting a String into two separate parts Date: 1996/09/05 Message-ID: #1/1 X-Deja-AN: 178753144 references: <50dr6o$38h@harbinger.cc.monash.edu.au> organization: The Mitre Corp., Bedford, MA. newsgroups: comp.lang.ada Date: 1996-09-05T00:00:00+00:00 List-Id: In article <50dr6o$38h@harbinger.cc.monash.edu.au> dean@seahorse.fcit.monash.edu.au (Dean Thompson) writes: > I know that this is a really dumb question but I need to split a string > into two parts based on the " " being the delimiter. > I have a feeling that I need to use the Index_Non_Blank function but I > have been unable to get the syntax correct. > I have tried both Bounded and Unbounded strings. > Can anybody help me ? Yes. What you want (assuming use clauses for clarity here) is a call to Index(Foo, To_Set(" ")), which will return the index of the first space character. I could put this in a program, but I'd need more details. Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is... -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...