Data.DB.TField.AsSingle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsSingle: Single read GetAsSingle write SetAsSingle;

C++

__property float AsSingle = {read=GetAsSingle, write=SetAsSingle};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Represents the field's value as a Single floating-point number.

Use AsSingle to read the value of the field's data into a Single or to assign a Single value to the contents of the field. TField does not support Single floating-point values and raises an exception when an attempt is made to get or set the AsSingle property.

Descendants of TField that represent Single floating-point numeric fields or that support conversions between the field's Value property and a single value override AsSingle to read and write the value of the field as a 7 digits of precision floating-point number.

See Also