Sign in Join
FPDoc Onlineexperiment

StrToUIntDef function

In unit sysutils

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

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.