本文整理自网络,侵删。
function GetFileName(FileName: string): string; {从路径中分离文件名}
var Contador: integer;
begin
Contador := 1;
while Copy(FileName, Length(FileName) - Contador, 1) <> '\' do
begin
Contador := Contador + 1;
end;
Result := (Copy(FileName, Length(FileName) - Contador + 1, Length(FileName)));
end;
相关阅读 >>
Delphi xe10 fdmemtable 数据保存本地和从本地加载
Delphi tcolortohex 与 hextotcolor
Delphi 把修改好的cookies重新赋值给webbrowser1 doc
更多相关阅读请进入《Delphi》频道 >>