RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.SameFileName Function

Compares file names based on the current locale.

Pascal
function SameFileName(const S1: string; const S2: string): Boolean;
C++
Boolean SameFileName(const AnsiString S1, const AnsiString S2);

SameFileName compares two file names in the same way as AnsiCompareFileName. SameFileName returns true if the file names match, false otherwise. Like AnsiCompareFileName, SameFileName supports locales and MBCS strings; see the AnsiCompareFileName topic for more details. 

 

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