Previous: 4.66.2.3. AnsiLowerCase function To the Table of Contents Next: 4.66.2.5. AnsiStrComp function
4.66.2.3. AnsiLowerCase function Table of Contents 4.66.2.5. AnsiStrComp function

- 4.66.2.4. -
Table of Contents
4. Standard Units
4.66. Strings - Large string manipulation unit
4.66.2. Strings Unit Procedures and Functions
4.66.2.4. AnsiCompareText function


4.66.2.4. AnsiCompareText function

Targets: MS-DOS, OS/2, Win32


Strings Unit

Compares strings based on the current Windows locale and is not case sensitive.

Declaration:
function AnsiCompareText(S1, S2: String): Longint;
Remarks:
AnsiCompareText compares S1 to S2, without case sensitivity. The compare operation is controlled by the current Windows locale. The return value is:
 Condition  Return Value 
S1 > S2> 0
S1 < S2< 0
S1 = S2= 0
Win32 target:
AnsiCompareText uses the current Windows locale.


Previous: 4.66.2.3. AnsiLowerCase function To the Table of Contents Next: 4.66.2.5. AnsiStrComp function
4.66.2.3. AnsiLowerCase function Table of Contents 4.66.2.5. AnsiStrComp function

- 4.66.2.4. -