本文整理自网络,侵删。
function GetFileName(FileName: string): string; {从路径中分离文件名}
var Contador: integer;
begin
Contador := 1;
while Copy(FileName, Length(FileName) - Contador, 1) <> '\' do
begin
Contador := Contador + 1;
end;
Result := (Copy(FileName, Length(FileName) - Contador + 1, Length(FileName)));
end;
相关阅读 >>
Delphi webbrowser1 网页提交按钮执行点击事件
更多相关阅读请进入《Delphi》频道 >>