ICultureInfo.ParseInteger

Syntax

ParseInteger(Value: String): Integer;

Parameters

Value. Value converted into integer type.

Description

The ParseInteger method converts the specified value into the integer type according to the regional standard settings.

Comments

If the conversion is not possible, the exception is thrown.

Example

Sub UserProc;
Var
    CI: ICultureInfo;
    I: Integer;
Begin
    CI := CultureInfo.Current;
    I := CI.ParseInteger("456");
End Sub UserProc;

After executing the example, the "I" variable contains the integer value obtained by converting from the string.

See also:

ICultureInfo