home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / rexx / 1450 next >
Encoding:
Text File  |  1993-01-04  |  1.2 KB  |  39 lines

  1. Newsgroups: comp.lang.rexx
  2. Path: sparky!uunet!csfb1!jbrock
  3. From: jbrock@csfb1.fir.fbc.com (John Brock)
  4. Subject: Re:      Lower-case alphabetic set
  5. Message-ID: <C0CDCz.Co3@csfb1.fir.fbc.com>
  6. Sender: news@csfb1.fir.fbc.com (Usenet News Account)
  7. Reply-To: uunet!csfb1!jbrock
  8. Organization: First Boston Corporation
  9. References:  <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>
  10. Date: Mon, 4 Jan 1993 18:14:58 GMT
  11. Lines: 26
  12.  
  13. In article <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>,         Wan Hasan Abdullah <WAN@UTMJB.BITNET> writes:
  14. |> Hello netters!
  15. |> 
  16. |> I found that, there's a function to translate all words to upper case
  17. |> but I could'nt find in HELP REXX to form the words from upper case to
  18. |> lower case by using a function. Could anyone help me to solve this
  19. |> problem?
  20. |> 
  21. |> Thanks in advance.
  22. |> 
  23. |> -WAN-
  24.  
  25. How about:
  26.  
  27.   lowercase: procedure
  28.   return translate(arg(1), xrange(), translate(xrange()))
  29.  
  30. I like this because it is consise and generic.  It should work as it
  31. stands for any language, and it lets me avoid typing out all the upper
  32. and lower case letters by hand (which I think looks ugly, even though
  33. it's clearly more efficient to do it that way).
  34.  
  35. -- 
  36. John Brock
  37. uunet!csfb1!jbrock
  38. jbrock@csfb1.fir.fbc.com
  39.