delphi 实现从下载链接提取文件名的函数


本文整理自网络,侵删。

 

//uses strutils;

 function ExtractUrlFileName(const Url: string): string;
var //www.delphitop.com
str:string;
begin
str:=reversestring(Url);
str:=copy(str,1,pos('/',str)-1);
str:=reversestring(str);
Result:=str;
end;

相反根据链接提取网址 http://www.delphitop.com/html/zifuchuan/1950.html

相关阅读 >>

Delphixe7关于android 检测屏幕是否处于关闭状态

Delphi getwindowhandle

winapi 字符及字符串函数(6): ischaralphanumeric - 是否是个文字(字母或数字)

Delphi写qq消息群发(模拟按键精灵)

Delphi 移动客户端的路径的安全正确的写法

Delphi检测本机的网络连接状态的三种方法

Delphi 复制拷贝文件目录函数

Delphi 2009 之 tstringbuilder 类[4]: insert 与 remove

Delphi的datetostr strtodate格式灵活用法

Delphi webbrowser选中文本操作 设置webbrowser的内容

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



打赏

取消

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

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

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

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

评论

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

    暂无评论...