Table of Content
HAL Forum
BOOL SetCompany (
integer compnr,boolean type)
Description:
Switches Hansa server to a certain compnay
Parameters:
compnr company number
type in most of the cases "false"
procedure ExportTheBlock(string blockname,Integer compnr)
begin  
  integer curcomp;

  curcomp = CurrentCompany;
  if (SetCompany(compnr,false)) then begin
    BlockExport(blockname);  
    ResetCompany(curcomp);
  end else begin
    ResetCompany(curcomp);
  end;
  return;
end;
Related topics:
««