I have a small process that receive a char, i convert it to a hex value, after that i have a convert table which tells me the new hex value. but after i'm stuck at converting back my hex value to a char. any help would be welcome.
just an exemple of where i'm stuck.
function SwapHexValue(mychar : char):char;
ls_string : string;
ls_string := inttohex(ord(mychar ),2);
ls_string := Swap(ls_string);
result := ???????????//something like result := hextochar(ls_string);