Previous: 4.66.2.1. Align function To the Table of Contents Next: 4.66.2.3. AnsiLowerCase function
4.66.2.1. Align function Table of Contents 4.66.2.3. AnsiLowerCase function

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


4.66.2.2. AnsiCompareStr function

Targets: MS-DOS, OS/2, Win32


Strings Unit

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

Declaration: function AnsiCompareStr(S1, S2: String): Longint; Remarks:
AnsiCompareStr compares S1 to S2, with case sensitivity. The return value is:

 ConditionN Return Value 
S1 > S2> 0
S1 < S2< 0
S1 = S2= 0


Win32 target:
AnsiCompareStr uses the current Windows locale.


Previous: 4.66.2.1. Align function To the Table of Contents Next: 4.66.2.3. AnsiLowerCase function
4.66.2.1. Align function Table of Contents 4.66.2.3. AnsiLowerCase function

- 4.66.2.2. -