ParseInteger(Value: String): Integer;
Value. Value converted into integer type.
The ParseInteger method converts the specified value into the integer type according to the regional standard settings.
If the conversion is not possible, the exception is thrown.
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: