Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

StrToUIntDef

Convert a string to an unsigned integer value, with a default value.

Declaration

Source position: sysstrh.inc line 149

function StrToUIntDef(

  const S: string;

  Default: Cardinal

):Cardinal;

Description

StrToIntDef will convert a string to an integer. If the string contains invalid characters or has an invalid format, then Default is returned.

To be successfully converted, a string can contain a combination of numerical characters. Spaces are not allowed.

Errors

None.

See also

IntToStr

  

Convert an integer value to a decimal string.

StrToUInt

  

Convert a string to unsigned integer value.

TryStrToUInt

  

Try to convert a string to an unsigned integer, and report on success.

StrToInt

  

Convert a string to an integer value.


Documentation generated on: Oct 27 2024