本文整理自网络,侵删。
function GetFilepath(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, 1, Length(FileName) - Contador));
end;
相关阅读 >>
Delphi firedac 的recordcount 相关测试 记录
Delphi thread类的创建及使用(关于线程函数的传递例子)
如何在Delphi中禁用关于“返回值...可能未定义”的警告?
更多相关阅读请进入《Delphi》频道 >>