Sign in Join
FPDoc Onlineexperiment

TField.AsCurrency property

Member of TFieldpublicIn unit DB

Access the field's contents as a Currency value.

Declaration

pascal
property AsCurrency: Currency read GetAsCurrency write SetAsCurrency;

Description

AsBoolean can be used to read or write the contents of the field as a currency value. If the native type of the field is not Boolean, then an attempt will be made to convert the field value from the native format to a currency value when reading the field's content. Likewise, when writing the property, the value will be converted to the native type of the field (if the value allows it). Therefor, when reading or writing a field value for a field whose native data type is not a currency-compatible value (dates or string values), an exception may be raised.

See also

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