Hex2Dec function
Converts a hexadecimal string to a decimal value.
Declaration
function Hex2Dec(const S: string): LongIntArguments
S | String to convert. |
Function result
Hexadecimal value of the string.
Description
Hex2Dec
converts the hexadecimal value in the string
S to its decimal value.
Unlike the standard
Valor
StrToInt functions, there need not be a $ sign in
front of the hexadecimal value to indicate that it is indeed a hexadecimal value.Errors
If
S does not contain a valid hexadecimal value, an
EConvertError exception will be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
