Jump to content

[SOLVED] When comparing strings uppercase is equal to lowercase?


tinman_72
 Share

Recommended Posts

When comparing strings why is 'A' equal to 'a' ?

For example:

$sFoo = 'A'
$sBar = 'a'
If $sFoo = $sBar Then
    MsgBox ( 4096, 'Debug', '"' & $sFoo & '" is equal to "' & $sBar & '".' )
Else
    MsgBox ( 4096, 'Debug', '"' & $sFoo & '" is not equal to "' & $sBar & '".' )
EndIf

Is there a work around?  I need to be able to differentiate between the two.

Thank you in advance.

Edited by tinman_72
Problem solved.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...