System.SysUtils.StrToInt64Def

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function StrToInt64Def(const S: string; const Default: Int64): Int64;

C++

extern DELPHI_PACKAGE __int64 __fastcall StrToInt64Def(const System::UnicodeString S, const __int64 Default)/* 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).

StrToInt64Def 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. StrToInt64Def renvoie le nombre transmis dans Default.

StrToInt64Def prend en charge les chaînes des notations hexadécimales suivantes :

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

Voir aussi