System.SysUtils.TStringHelper.ToInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ToInteger(const S: string): Integer; overload; static; inline;
function ToInteger: Integer; overload; inline;

Properties

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

Description

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

This method is overloaded.

ToInteger 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, ToInteger raises an EConvertError exception.

See Also