AnsiCompareStr
Compares strings based on the current Windows locale with case sensitivity.
Structure
AnsiCompareStr(string1,string2)
Parameters
string1 - the first string to be compared
string2 - the second string to compare to the first
Return Value
The AnsiCompareStr function returns an integer value
Condition Return Value
string1 > string2 > 0
string1 < string2 < 0
string1 = string2 = 0
Description
AnsiCompareStr compares string1 to string2, with case sensitivity. The compare operation is controlled by the current Windows locale.
Note
Most Windows locales consider lowercase characters to be less than the corresponding uppercase characters. This is in contrast to ASCII order, in which lowercase characters are greater than uppercase characters. Thus,
AnsiCompareStr('a','A') ' returns a value less than zero, while
CompareStr('a','A') ' returns a value greater than zero. |