System.SysUtils.TStringHelper.ToInteger
Delphi
class function ToInteger(const S: string): Integer; overload; static; inline;
function ToInteger: Integer; overload; inline;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Convertit en nombre une chaîne qui représente un entier (décimal ou hexadécimal).
Cette méthode est surchargée.
ToInteger convertit en nombre la chaîne S
, qui représente un nombre entier en notation décimale ou hexadécimale. Si S
ne représente pas un nombre valide, ToInteger déclenche une exception EConvertError.