Sign in Join
FPDoc Onlineexperiment

TryStrToCurr function

In unit sysutils

Try to convert a string to a currency.

Declaration

pascal
function TryStrToCurr(const S: string; out Value: Currency): Boolean

Description

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

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