Aller au contenu principal

AnsiCompareText

Compares strings based on the current Windows locale without case sensitivity.

Structure

AnsiCompareText(string1,string2)

Parameters

string1 - the first string to be compared

string2 - the second string to compare to the first

Return Value

The AnsiCompareText function returns an integer value

Condition Return Value

string1 > string2 > 0

string1 < string2 < 0

string1 = string2 = 0

Description

AnsiCompareText compares string1 to string2, without case sensitivity. The compare operation is controlled by the current Windows locale. AnsiCompareText returns a value less than 0 if string1 < string2, a value greater than 0 if string1 > string2, and returns 0 if string1 = string2. |