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 spcomm串口控件的例程

Delphi 调用cmd命令行并取得返回结果

Delphi tidhttp获取软件版本信息

Delphi firedac 另存json

Delphi tidhttp抓取页面信息

如何使用Delphi 10 seattle的android应用做intent的发送和接收

Delphi pchar和array [0..255] of char的区别

Delphi idhttp中get 图像链接通过memorystream加载 image控件显示

Delphi 高亮选中memo某一行

Delphi让文本框接受文件拖放

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



打赏

取消

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

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

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

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

评论

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