toHex

toHex(): String;

The toHex method of the Character primitive type returns a string containing the hexadecimal value of the receiving character.

The following example shows the use of the toHex method.

vars
    charValue : Character;
begin
    charValue := "q";
    write charValue.toHex;    // Outputs 71
end;