Show: Delphi C++
Display Preferences

System.SysUtils.StrToInt

From XE3 API Documentation
Jump to: navigation, search

Delphi

function StrToInt(const S: string): Integer;

C++

extern DELPHI_PACKAGE int __fastcall StrToInt(const System::UnicodeString S)/* overload */;

Contents

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Converts a string that represents an integer (decimal or hex notation) into a number.

StrToInt converts the string S, which represents an integer-type number in either decimal or hexadecimal notation, into a number. If S does not represent a valid number, StrToInt raises an EConvertError exception.

See Also


Code Examples

Personal tools
Translations