Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!ucsd!sdcc6!beowulf!lindwall From: lindwall@beowulf.ucsd.edu (John Lindwall) Newsgroups: comp.sys.amiga.programmer Subject: Re: Arexx programming help wanted Message-ID: <18659@sdcc6.ucsd.edu> Date: 25 Apr 91 20:50:20 GMT References: <18587@sdcc6.ucsd.edu> <1909c9ad.ARN1b30@prolix.pub.uu.oz.au> Sender: news@sdcc6.ucsd.edu Organization: CSE Dept., UC San Diego Lines: 37 In article <1909c9ad.ARN1b30@prolix.pub.uu.oz.au> dac@prolix.pub.uu.oz.au writes: >In article <18587@sdcc6.ucsd.edu>, John Lindwall writes: >> 3> I'm using CEDPro's getstring function to let the user enter a string. >> I'd like to pass a string for the DefaultTitle as well as an _empty_ >> DefaultValue. The syntax is: getstring DefaultValue DefaultTitle. > >I just spent 5 minutes reading the manual, and creating this: >/*rexx*/ >/*test getstring*/ >options results >getstring '" "' "My Test" >IF (result = "") | (result= "RESULT") THEN > okay1 "Need input, Stephanie" >ELSE > okay1 "you entered:" result Thanks for the excellent help for my first two questions (I must have been sleeping when I read the description of ARG!). The sample code you show above is something I also tried, as it is given in an example in the CEDPro manual; unfortunately is doesn't do what I want. The example passes a space character as the DefaultValue. If the user types a string, the space is appended to their input. To see this effect replace the last okay1 call with: okay 1 "you didn't really enter: [" || result || "]" My application needs the input string without any bogus appended space char. As I mentioned I currently strip the trailing blank off, which is good enough I suppose. But I was hoping I could pass an empty as the DefaultValue so that I would get the user's input string returned without any bogus tailing blank. PS. Thanks to everyone else who has replied to my query as well! -- John Lindwall lindwall@cs.ucsd.edu "Oh look at me! I'm all flooby! I'll be a son of a gun!" -- Flaming Carrot