System.SysUtils.TStringHelper.CompareText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function CompareText(const StrA: string; const StrB: string): Integer; static; inline;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TStringHelper

Description

Compares two strings by their ordinal value, without case sensitivity.

CompareText compares StrA and StrB and returns 0 if they are equal. If StrA is greater than StrB, CompareText returns an integer greater than 0. If StrA is less than StrB, CompareText returns an integer less than 0. CompareText is not case sensitive and is not affected by the current locale, when using the first CompareText overloaded method.

See Also