Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!pacbell.com!decwrl!pa.dec.com!bacchus!mwm From: mwm@pa.dec.com (Mike (My Watch Has Windows) Meyer) Newsgroups: comp.sys.amiga.programmer Subject: Re: Arexx programming help wanted Message-ID: Date: 25 Apr 91 15:24:47 GMT References: <18587@sdcc6.ucsd.edu> Sender: news@pa.dec.com (News) Organization: Missionaria Phonibalonica Lines: 47 In-Reply-To: lindwall@beowulf.ucsd.edu's message of 23 Apr 91 19:48:31 GMT In article <18587@sdcc6.ucsd.edu> lindwall@beowulf.ucsd.edu (John Lindwall) writes: 1> I have a function which accepts a string as an argument. The function opens and file and searches through the file for the supplied string. My problem is that the function is receiving the string in upper-case, and I'd like the case preserved. Its something like this: The output from this fragment is UPPERANDLOWERCASE. How do I preserve case? As has been pointed out, use "parse arg" instead of "arg". Also, if you're going to pass binary variables around, be warned that "arg" is an invocation of "parse", and can twiddle your strings if you're not carefull. 2> What kind of modularity can I get out of Arexx? I plan to implement a collection of Arexx scripts which are invoked by various command keys from CEDPro. All of these scripts will be making calls to a set of low-level primitives which I have implemented (e.g. Lookup(), above). Put those scripts in seperate files with the names you're going to be calling them from. Don't make it a procedure or bother with a label. If you're going to be using them from different hosts, don't put an extension on the function name (of course, this requires that it doesn't require a specific host for it to run). 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? Depends on how CedPro parses that input. If it were sane, then something like: 'getstring "" Title' would work. Of course, CedPro may not be sane...