Table of Content
HAL Forum
function Integer BitXor (
Integer i1,Integer i2)
Description:
Returns value of all bits Bit Xor operation of 2 Integers
Parameters:
i1 Integer
i2 Integer
global
procedure POSNETCheckSum(var string CtrlSeq)
BEGIN
  Integer i,l;
  Integer c;
  string 1 ch;
  
  l = len(CtrlSeq);
  c = 255;
  for (i=2;i<=len(CtrlSeq);i=i+1) begin
    ch = Mid(CtrlSeq,i,1);
    ch = ConvertStringToCodePage("MAZOVIA",ch);
    c = BitXor(c,asc(ch));
  end;
  RETURN;
END;

Related topics:
««