RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.SameText Function

Compares two strings by ordinal value without case sensitivity.

Pascal
function SameText(const S1: string; const S2: string): Boolean; overload;
function SameText(const S1: string; const S2: string; LocaleOptions: TLocaleOptions): Boolean; overload;
C++
Boolean SameText(const AnsiString S1, const AnsiString S2);
Boolean SameText(const AnsiString S1, const AnsiString S2, TLocaleOptions LocaleOptions);

SameText compares S1 and S2 and returns true if they are equal. SameText is not case sensitive and is not affected by the current locale. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!