delphi 截取绝对路径的文件名


本文整理自网络,侵删。

 {delphi 截取绝对路径的文件名。}
function ExtractFileName(Str: string): string;
var
i: Integer;
begin
Result := '';
for i := Length(Str) downto 1 do
begin
if Str[i] <> '\' then Insert(Str[i], Result, 0)
else Exit;
end;
end;

相关阅读 >>

Delphi 获取内核地址的简单方法

Delphi mac地址转换字符串

Delphi复制文件夹内所有文件

Delphi汉字简繁体转换代码

Delphi消息发送字符串

Delphi关闭进程

Delphi如何获取系统服务(即service服务程序)列表

Delphi 删除确认对话框

Delphi tzipfile 用法

Delphi twebbrowser控件禁用鼠标右键

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...