RAD Studio VCL Reference
SysUtils.SameFileName Function

Compares file names based on the current locale.

function SameFileName(const S1: string; const S2: string): Boolean;
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!