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


Try to convert a string to a currency.


Source position: sysstrh.inc line 227

function TryStrToCurr(

  const S: string;

  out Value: Currency


function TryStrToCurr(

  const S: string;

  out Value: Currency;

  const FormatSettings: TFormatSettings



TryStrToCurr converts the string S to a currency value and returns the value in Value. The function returns True if it was successful, False if not. This is contrary to StrToCurr, which raises an exception when the conversion fails.

The function takes into account locale information.

See also



Convert a string to a currency value.



Convert a buffer to a float value.

Documentation generated on: Jul 24 2023