Afficher : Delphi C++
Préférences d'affichage

System.SysUtils.StrToInt

De XE2 API Documentation

Delphi

function StrToInt(const S: string): Integer;

C++

extern PACKAGE int __fastcall StrToInt(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).

StrToInt convertit la chaîne AnsiStringS, qui représente un nombre entier en notation décimale ou hexadécimale. Si S ne représente pas un nombre valide, StrToInt déclenche une exception EConvertError.

Voir aussi

Versions précédentes
Traductions