很弱智的有关问题哪位高手来帮忙解释下

很弱智的问题谁来帮忙解释下啊
inttohex(sum,   2)《==这句话什么作用的?举个具体的例子
s   :=   s   xor   byte(str[k])〈==字符串里的第K个字符给他BYTE下是什么?

------解决方案--------------------
看看delphi的帮助
IntToHex converts a number into a string containing the number 's hexadecimal (base 16) representation. Value is the number to convert. Digits indicates the minimum number of hexadecimal digits to return.

IntToHex的第2个参数表示返回的16进制字符串的最小位数。
你试一下
edit1.Text := inttohex(10, 2);
edit2.Text := inttohex(10, 1);
就知道怎么回事了。
----------------------------

那str[k]= 'P '则转换后为byte的什么?
就是 'P '的ascII值 80