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 for android 调用java类库

Delphi dbgrid 表格自适应宽度

Delphi shellexecute openurl 的跨平台实现

Delphi 关于xe10下indy发送字符串编码的问题

Delphi exe文件自效验

Delphi 显示简单图形

Delphi的tclientsocket组件和tserversocket组件(c/s)说明

Delphi unidac 连接mdb access 数据库

Delphi 调用系统图片查看器

Delphi 通过memorystream 传递image1数据

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



打赏

取消

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

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

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

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

评论

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