Internet Direct (Indy) Version 9.0.2 Beta
AnsiSameText
Performs a case-insensitive comparison of two Ansi strings.

function AnsiSameText(const S1: string; const S2: string): Boolean;
Parameters
const S1: string
The first string used in the comparison.

const S2: string
The second string used in the comparison.

Returns
Boolean - True when the strings are the same.

Description
AnsiSameText is a Boolean function used to perform a case-insensitive comparison of two strings using the locale for the current user on the local computer system.

AnsiSameText returns True if the strings are equal in lexical value, or False when the strings do not share the same collation order value.

AnsiSameText encapsulates the platform-specific procedures and functions used to perform string comparisons. On the Windows platform, the WIN32 API function used is CompareString.