delphi url取得文件名


本文整理自网络,侵删。

 function GetFileNameFromURL(const aURL: string): string;  
var ts : TStrings;  
begin  
  //从url取得文件名  
  ts := TStringList.create;  
  try  
    ts.Delimiter :='/';  
    ts.DelimitedText := aURL;  
    if ts.Count > 0 then  
      Result := ts[ts.Count - 1];  
  finally  
    ts.Free;  
  end;  
end;  

相关阅读 >>

Delphi md5单元文件

Delphi tms web core 通过url 传递参数

Delphi mysql里Delphi事件类型转unix时间戳

Delphi 利用Delphi监视注册表的变化

Delphi tfdquery提交tfdmemtable修改的数据

Delphi xe2 - 实现主窗口在任务栏上不显示

Delphi edit只能输入数字或小数点

Delphi fdmemtable1 清空

Delphi dbexpress的upwherekeyonly的使用注意事项

Delphi 从一个html返回所有的图片链接

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



打赏

取消

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

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

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

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

评论

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