[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'db' (#fcl)

TField.AsFloat

Access the field's contents as a floating-point (Double) value.

Declaration

Source position: db.pas line 396

public property TField.AsFloat : Double
  read GetAsFloat
  write SetAsFloat;

Description

AsFloat can be used to read or write the contents of the field as a floating-point value (of type double, i.e. with double precision). If the native type of the field is not a floating-point value, then an attempt will be made to convert the field value from the native format to a floating-point 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 floating-point-compatible value (string values for instance), an exception may be raised.

See also

TField.Value

  

Value of the field as a variant value

TField.AsString

  

Access the field's contents as an AnsiString value.

TField.AsCurrency

  

Access the field's contents as a Currency value.


Documentation generated on: Nov 14 2015