StringCaseInsensitiveComparer: IComparer;
The StringCaseInsensitiveComparer property returns an object to compare elements of string type.
Comparison is executed taking into account the length and without taking into account the case of element contents.
Sub UserProc;
Var
Com: IComparer;
i, i1, i2, i3: Integer;
Begin
Com := Comparer.StringCaseInsensitiveComparer;
i := Com.Compare("a", "A");
i1 := Com.Compare("aa", "A");
i2 := Com.Compare("a", "AA");
i3 := Com.Compare("aA", "Aa");
End Sub UserProc;
After executing the example the "i, i1, i2, i3" variables contain the "0, 1, -1, 0" values respectively.
See also: