本文整理自网络,侵删。
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 xe android 使用system.zip单元释放资源文件
更多相关阅读请进入《Delphi》频道 >>