本文整理自网络,侵删。
function GetMovieName(const fn: string): string;
var
i:Integer;
s:string;
begin
s := trim(fn);
if s[Length(s)]='\' then
s := Copy(s,1,Length(s)-1);
while Pos('\',s)>0 do
begin
i := Pos('\',s);
s := Copy(s,i+1,Length(s)-i);
end;
Result := s;
end;
相关阅读 >>
Delphi webbrowser1 保存文档为 .html
incsecond:将一个tdatetime变量加减一定数量的秒数
Delphi webbrowser控件实现对ie浏览器的各种控制
Delphi之tclientsocket和tserversocket使用tcp keepalive心跳机制实现“断网”、"断电"检测
更多相关阅读请进入《Delphi》频道 >>