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

StrToCurr

Convert a string to a currency value.

Declaration

Source position: sysstrh.inc line 225

function StrToCurr(

  const S: string

):Currency;

function StrToCurr(

  const S: string;

  const FormatSettings: TFormatSettings

):Currency;

Description

StrToCurr 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, an EConvertError exception is raised.

Errors

On error, an EConvertError exception is raised.

See also

CurrToStr

  

Convert a currency value to a string.

StrToCurrDef

  

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


Documentation generated on: Jul 24 2023