Making string comparisons case sensitive

John Baughman (3/19/14 5:13PM)

John Baughman (3/19/14 5:13 PM)

On Mar 8, 2014, at 3:14 PM, Cannon Smith wrote:

color><param>00000,0000,DDEE/param>IIf you first check that the
strings are the same length (and not zero length), then:

If (Position(Old($pField->);$pField->;*)#1)
//Then they are different

is equivalent to a case sensitive comparison.

A week or so ago I asked this question and do not think I ever thanked
Cannon for this great little tip. Thanks Cannon!

If anyone is interested I wrote a simple wrapper for it listed below.
I think it covers all the bases.


John Baughman
Kailua, Hawaii
(808) 262-0328

//Method: StringsAreDifferent("first string";"second string")


Case of
=A0=A0: ($firstString+$secondString="")

=A0=A0: (Length($firstString)#Length($secondString))
//need this because it will break if $firstString was the same
$secondString but for some reason got cut off


End case

Reply to this message

Summary created 3/20/14 at 6:43AM by Intellex Corporation

Comments welcome at: