[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

TryStrToCurr

Try to convert a string to a currency

Declaration

Source position: sysstrh.inc line 158

function TryStrToCurr(

  const S: String;

  var Value: Currency

):Boolean;

Description

TryStrToCurrconverts the string Sto a currency value and returns the value in Value. The function returns Trueif it was successful, Falseif not. This is contrary to StrToCurr, which raises an exception when the conversion fails.

The function takes into account locale information.

See also

StrToCurr

  

Convert a string to a currency value

TextToFloat

  

Convert a buffer to a float value.