Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!manuel!ccadfa!prolix!dac From: dac@prolix.pub.uu.oz.au (Andrew Clayton) Newsgroups: comp.sys.amiga.programmer Subject: Re: Arexx programming help wanted Message-ID: <1909c9ad.ARN1b30@prolix.pub.uu.oz.au> Date: 24 Apr 91 12:37:33 GMT References: <18587@sdcc6.ucsd.edu> Reply-To: dac@prolix.pub.uu.oz.au Followup-To: comp.sys.amiga.programmer Organization: More like Mis~, really. Lines: 60 In article <18587@sdcc6.ucsd.edu>, John Lindwall writes: > I'm having a great time learning Arexx -- its a refreshing change from C! > My current (and first) Arexx project is to add some functionality to the > CEDPro editor, and I had some novice-level questions for you Arexx-perts. Arexx and CEDpro - positively _the_ best combination for the Amiga! :-) > My problem is that the function is receiving the string in upper-case, > and I'd like the case preserved. Its something like this: > arg myString "arg" is short for 'parse arg upper'. Use 'parse arg myString' and your problem will disappear. > 2> What kind of modularity can I get out of Arexx? I plan to implement a Arexx can call other scripts from within a script. > 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 can't seem to successfully pass an empty string for the DefaultTitle > no matter what horrendous quoting I try. Currently I pass a string > consisting of a single space for the DefaultValue, and then strip the > space off of the return result; which is kind of lame-o. How can I > pass an empty string? I just spent 5 minutes reading the manual, and creating this: ---cut /*rexx*/ /*test getstring*/ options results getstring '" "' "My Test" IF (result = "") | (result= "RESULT") THEN okay1 "Need input, Stephanie" ELSE okay1 "you entered:" result ---cut Which duly said "Need input, Stephanie" if I just pressed return, or sent back what I typed into the string requester. [No, I'm not a transvestite, you fools! The quote is from Short Circuit. Sheesh! :-/] The way I originally read your message, you wanted to pass an empty string to 'DefaultTITLE' which, of course, you can't do :-(. I guess you made a typo. What application could call for a null defaulttitle? :-) Hope that's of use to you. Dac -- David Andrew Clayton. // _l _ _ dac@prolix.pub.uu.oz.au *or*|I post.I am. Canberra, Australia.\X/ (_](_l(_ ccadfa.cc.adfa.oz.au!prolix!dac@munnari.oz