System.AnsiStringBase.ToInt

From RAD Studio API Documentation
Jump to: navigation, search

C++

int          ToInt() const;

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringBase

Description

Converts a string to an integer, throwing an exception if the string is invalid.

ToInt converts the given string to an integer value and returns the integer. If the string does not contain a valid value, an EConvertError exception is thrown.

See Also