Sign in Join
FPDoc Onlineexperiment

StrToCurr function

In unit sysutils

Convert a string to a currency value.

Declaration

pascal
function StrToCurr(const S: string): 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

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