[Delphi (Object Pascal)] Delphi 获取指定路径的最后一层目录 →→→→→进入此内容的聊天室

来自 , 2021-02-21, 写在 Delphi (Object Pascal), 查看 117 次.
URL http://www.code666.cn/view/a1e865a9
  1. function GetLastDirectory(APath: string): string;
  2. begin
  3.   if IsDirectory(APath) then
  4.     Result := SysUtils.ExtractFileName(PathToDir(APath))
  5.   else
  6.     Result := '';
  7. end;

回复 "Delphi 获取指定路径的最后一层目录"

这儿你可以回复上面这条便签

captcha