Sign in Join
FPDoc Onlineexperiment

StrToCurrDef function

In unit sysutils

Convert a string to a currency value, using a default value.

Declaration

pascal
function StrToCurrDef(const S: string; Default: Currency): Currency

Description

StrToCurrDef converts a string to a currency value and returns the value. The string should contain a valid currency amount, without currency symbol. If the conversion fails, the fallback Default value is returned.

Errors

On error, the Default value is returned.

See also

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