HexToInt
Convertit un nombre au format hexadécimal en enter.
Syntaxe
function HexToInt(hexa: String): Integer
hexa: chaîne à convertir
Remarques
Convertit un nombre au format hexadécimal stocké dans une chaîne de caractères en nombre de type Integer 64bits.
Si la chaîne ne contient pas un nombre hexadécimal correct, une exception sera déclenchée.
Voir aussi HexToBigInteger.
Exemples
var chaine : String;
var entier : Integer = 258;
chaine := IntToHex(entier,4);
InformationDlg(chaine); // affiche 0102
entier := HexToInt(chaine);
InformationDlg(IntToStr(entier));
var entier : Integer = 258;
chaine := IntToHex(entier,4);
InformationDlg(chaine); // affiche 0102
entier := HexToInt(chaine);
InformationDlg(IntToStr(entier));