本文整理自网络,侵删。
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 createthread的线程传参数(小熊论坛的)
Delphi xe6取得android智能手机的电话号码等的终端信息
更多相关阅读请进入《Delphi》频道 >>