function HexVal(n$)

Returns the integer value of a hexadecimal string.