StrToCurr¶
Convert a string to a currency value.
Declaration¶
Source position: sysstrh.inc line 243
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¶
| Name | Description |
|---|---|
| CurrToStr | Convert a currency value to a string. |
| StrToCurrDef | Convert a string to a currency value, using a default value. |