home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / rexx / 1449 < prev    next >
Encoding:
Text File  |  1993-01-03  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.lang.rexx
  2. Path: sparky!uunet!ftpbox!news
  3. From: acus02@ems13.corp.mot.com (David McAnally)
  4. Subject: re: Lower-case alphabetic set
  5. Message-ID: <1993Jan4.022708.2922@ftpbox.mot.com>
  6. Sender: news@ftpbox.mot.com (C News)
  7. Reply-To: acus02@email.mot.com
  8. Organization: Motorola, Inc.
  9. References: <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>
  10. Date: Mon, 4 Jan 1993 02:27:08 GMT
  11. Lines: 30
  12.  
  13. In article <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>  writes:
  14. > Hello netters!
  15. > I found that, there's a function to translate all words to upper case
  16. > but I could'nt find in HELP REXX to form the words from upper case to
  17. > lower case by using a function. Could anyone help me to solve this
  18. > problem?
  19. > Thanks in advance.
  20. > -WAN-
  21.  
  22. Although there isn't a specific "lower" case translation function, you can  
  23. create one, or do the same thing using the "translate()" function. Create a  
  24. procedure or subroutine function something like the following. (my editor  
  25. probably wraps the long line, but you get the idea)
  26.  
  27. /* lower case REXX function (opposite of UPPER function) */
  28. parse arg instring
  29. return  
  30. TRANSLATE(instring,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ' 
  31. )
  32.  
  33. --
  34. +-------------------------------------------------------------------------+
  35. | David McAnally                     | EMail: acus02@waccvm.corp.mot.com  |
  36. | Motorola Corp. Computer Services   |  Next: acus02@ems13.corp.mot.com   |
  37. | CS / Application Engineering       |                                    |
  38. | M/D AZ49 R3148                     |                                    |
  39. +-------------------------------------------------------------------------+
  40.