Table of Content
HAL Forum
procedure RegisterForAllCompanies (
boolean ForClient)
Description:
Defines a register is global (for all companies).
Parameters:
ForClient True will store the records on the client machine for all companies | False: Store the register on the server for all companies
begin
  RecordBegin(LocalINVc,-,"");
  ImpExpLevel(1);         // Required if you have RegisterForAllCompanies in halcust for custom registers.
  RegisterForAllCompanies(true);
  RecordField(seqnr,M4Long,0,0);
  INVcDefinition;
  MainKeyBegin(Code,0);
  KeySegment(Code);
  KeyBegin(BarCode);
  KeySegment(BarCode);
  KeySegment(Code);
  KeyBegin(AlternativeCode);
  KeySegment(AlternativeCode);
  KeySegment(Code);
  EndRecord;

  return;
end;
Related topics:
««