Compares two strings with options.
StringCompare ( "string1", "string2" [, casesense] )
| string1 | The first string to evaluate. |
| string2 | The second string to evaluate. |
| casesense | [optional] Flag to indicate if the operations should be case sensitive. 0 = not case sensitive, using the user's locale (default) 1 = case sensitive 2 = not case sensitive, using a basic/faster comparison |
| 0 | string1 and string2 are equal |
| > 0 | string1 is greater than string2 |
| < 0 | string1 is less than string2 |
Local $result = StringCompare("MELÓN", "melón")
MsgBox(0, "StringCompare Result (mode 0):", $result)
$result = StringCompare("MELÓN", "melón", 1)
MsgBox(0, "StringCompare Result (mode 1):", $result)
$result = StringCompare("MELÓN", "melón", 2)
MsgBox(0, "StringCompare Result (mode 2):", $result)