
函数名称 CheckDir
所在单元 GisDefs
函数原型 function CheckDir(const _path: String): Boolean;
函数说明
如果 _path 是一个有效的路径,返回 True,否则返回 False.
举例说明
if CheckDir('c:\') then
ShowMessage('路径有效'); // 可以执行到此 if CheckDir('c:\install.txe') then
begin
end
else
ShowMessage('路径无效'); // 可以执行到此