System.WideString.ToIntDef

From RAD Studio API Documentation
Revision as of 00:55, 17 October 2011 by PyBot (talk | contribs) (Scoping Libraries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

C++

int          ToIntDef(int defaultValue) const;

Properties

Type Visibility Source Unit Parent
function public wstring.h System WideString

Description

Converts the string to an 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