本文整理自网络,侵删。
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 debug模式下可以但是release模式下报错原因之一
github上通过星级评估排名前10的最受欢迎的开源Delphi项目
Delphi tms web core twebhttprequest使用
更多相关阅读请进入《Delphi》频道 >>