本文整理自网络,侵删。
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 xe 网上获取北京时间android app 启动黑屏优化补丁
Delphi tidhttp+tidssliohandlersocket+ssl
Delphi 请求时间,为当前时间,数值为1970-01-01以来的毫秒数
Delphi 读取图像文件base64编码加载到image组件显示图片
更多相关阅读请进入《Delphi》频道 >>