728x90
Delphi Tip - 파일이름 관련 함수
출처 : http://delphi.borlandforum.com/impboard/impboard.dll?action=read&db=del_tip&no=179
http://www.swissdelphicenter.ch/torry/showcode.php?id=144
http://www.delphibasics.co.uk/RTL.asp?Name=StringReplace
// 델파이
function ExtractFileDir(const FileName: string): string;
function ExtractFileDrive(const FileName: string): string;
function ExtractFileName(const FileName: string): string;
function ExtractFilePath(const FileName: string): string;
예)
filename := ExtractFileName( StringReplace(url, '/', '\', [rfReplaceAll, rfIgnoreCase]) );
출처 : http://delphi.borlandforum.com/impboard/impboard.dll?action=read&db=del_tip&no=179
http://www.swissdelphicenter.ch/torry/showcode.php?id=144
http://www.delphibasics.co.uk/RTL.asp?Name=StringReplace
// 델파이
function ExtractFileDir(const FileName: string): string;
function ExtractFileDrive(const FileName: string): string;
function ExtractFileName(const FileName: string): string;
function ExtractFilePath(const FileName: string): string;
예)
filename := ExtractFileName( StringReplace(url, '/', '\', [rfReplaceAll, rfIgnoreCase]) );
728x90