System.UnicodeString.ToIntDef

From RAD Studio API Documentation
Jump to: navigation, search

C++

int          ToIntDef(int defaultValue) const;

Properties

Type Visibility Source Unit Parent
function public ustring.h System UnicodeString

Description

Converts string to integer, returning a default value if the string is invalid.

ToIntDef converts the given string to an integer value and returns the integer. If the string does not contain a valid value, the value given by defaultValue is returned.

See Also