home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!csfb1!jbrock
- From: jbrock@csfb1.fir.fbc.com (John Brock)
- Subject: Re: Lower-case alphabetic set
- Message-ID: <C0CDCz.Co3@csfb1.fir.fbc.com>
- Sender: news@csfb1.fir.fbc.com (Usenet News Account)
- Reply-To: uunet!csfb1!jbrock
- Organization: First Boston Corporation
- References: <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>
- Date: Mon, 4 Jan 1993 18:14:58 GMT
- Lines: 26
-
- In article <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>, Wan Hasan Abdullah <WAN@UTMJB.BITNET> writes:
- |> Hello netters!
- |>
- |> I found that, there's a function to translate all words to upper case
- |> but I could'nt find in HELP REXX to form the words from upper case to
- |> lower case by using a function. Could anyone help me to solve this
- |> problem?
- |>
- |> Thanks in advance.
- |>
- |> -WAN-
-
- How about:
-
- lowercase: procedure
- return translate(arg(1), xrange(), translate(xrange()))
-
- I like this because it is consise and generic. It should work as it
- stands for any language, and it lets me avoid typing out all the upper
- and lower case letters by hand (which I think looks ugly, even though
- it's clearly more efficient to do it that way).
-
- --
- John Brock
- uunet!csfb1!jbrock
- jbrock@csfb1.fir.fbc.com
-