TryFloatToCurr

Try to convert a float value to a currency value and report on success.

Declaration

Source position: sysstrh.inc line 216

  function TryFloatToCurr(const Value: Extended; var AResult: Currency)
                          : Boolean;

Description

TryFloatToCurr tries convert the Value floating point value to a Currency value. If successful, the function returns True and the resulting currency value is returned in AResult. It checks whether Value is in the valid range of currencies (determined by MinCurrency and MaxCurrency ). If not, False is returned.

Errors

If Value is out of range, False is returned.

See also

Name Description
FloatToCurr Convert a float to a Currency value.
MaxCurrency Maximum currency value
MinCurrency Minimum Currency value