本文整理自网络,侵删。
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 xe2和xe3开发的程序中加入管理员权限申请
Delphi中如何判断mediaplayer控件所播放的文件是否播放完毕?
Delphi setwindowshookex - 设置钩子 unhookwindowshookex - 卸掉钩子
Delphi的tservice的windows�入桌面切�q
更多相关阅读请进入《Delphi》频道 >>