TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: RON MITCHELL
from: MIKE RUSKAI
date: 1999-10-12 09:50:00
subject: hstart wget?

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)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.