Table of Content
HAL Forum
function boolean FileExists (
string FileLocation)
Description:
Check if a file with the given name exsists in the HansaWorld application folder. Path to file can also be used (e.g ".//..//my_file.txt").
Parameters:
FileLocation Name (and path) of the file being checked.
procedure AddJewelleryFiles()
begin
  if (FileExists(HobFolder & "jwlcli.hob")) then begin
    SourceFile(HobFolder & "jwlcli.hob",kCodeLevelIndustry);
  end;
  if (FileExists(HobFolder & "jwlsvr.hob")) then begin
    SourceFile(HobFolder & "jwlsvr.hob",kCodeLevelIndustry);
  end;
  return;
end;
Related topics:
««