Some senseless babbling from Ron Mitchell to Rich Wonneberger
on 10-11-99 21:34 about hstart wget?...
RM> Rich Wonneberger wrote in a message to Ron Mitchell:
RW> Thanks for the lesson.
RM> Don't thank me. Thank Charles Daney. His 'Programming in REXX' book
RM> is the best investment I've ever made in a programming book.
RW> Is there any way to get a non case sensitive comparison??
RM> I don't think so.
RM> Probably the best way to do it is to copy both operands to temporary
RM> variables and then convert these variables to lower or upper case
RM> before you compare. Daney seems to like converting to lower case. I
RM> don't know why yet.
RM> You can drop the temporary variables and use the original operands
RM> however you wish depending on the outcome of the compare.
FYI, using a temporary variable isn't necessary. Simply wrap the variable
inside a translate() call (or put a ~translate at the end of the message
chain, in Object REXX), like this:
string1='something'
string2='SoMeThInG'
say translate(string1)==translate(string2)
Mike Ruskai
thannymeister@yahoo.com
... Does that look like a slut to you, Beavis?
___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
45
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)
|