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.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b7bdef489cfde85f,start X-Google-Attributes: gid103376,public From: u5ral@csc.liv.ac.uk (R.A. Lawrence) Subject: Heeeeeeeeelp!!!! Date: 1996/03/21 Message-ID: #1/1 X-Deja-AN: 143669392 sender: news@csc.liv.ac.uk (News Eater) summary: Ada problems organization: Computer Science, Liverpool University keywords: strings, calling outside values newsgroups: comp.lang.ada Date: 1996-03-21T00:00:00+00:00 List-Id: Right - a couple of easy peasy questions for you ada gurus out there: Im rewriting an old program of mine to be used at university. Every Unix machine has a user id number which can be easily found to which i want to write a program called `xtwhere` which tells you which lab that computer with that id number is located. (1) I want people to be able to type: xtwhere to which it runs the program `xtwhere`. How can i find out what the written was? - an example of this might be xtwhere xt027 (2) I need to split this into two parts - a text bit (the `xt`) and the number bit (the '027') - If the answer to (1) returns a string how can i convert a string into a number? Please could you mail any suggestions/answers to me as i dont regulary use this newsgroup. Regards Rich. -- ___ ___ === /___\ /___\ ======================================================== | o | o | Richard Lawrence \___/ \___/ Department of Computer Science / \ The University of Liverpool \___| |___/ EMAIL: u5ral@csc.liv.ac.uk / cs0u5110@liv.ac.uk \ \___/ / WEB SITE: http://www.csc.liv.ac.uk/~u5ral === \_________/ =========================================================