System.SysUtils.StrToInt64

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function StrToInt64(const S: string): Int64;

C++

extern DELPHI_PACKAGE __int64 __fastcall StrToInt64(const System::UnicodeString S)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils


Description

Convertit en nombre une chaîne qui représente un entier (décimal ou hexadécimal).

StrToInt64 convertit en nombre la chaîne S, qui représente un nombre entier en notation décimale ou hexadécimale. La valeur de sortie est un entier de 64 bits. Si S ne représente pas un nombre valide, StrToInt64 déclenche une exception EConvertError.

StrToInt64 prend en charge les chaînes des notations suivantes :

  • Delphi : 0$1234 et 0x1234.
  • C++ : 0x1234.

Voir aussi