FireDAC.Comp.DataSet.TFDSQLTimeIntervalField.AsSQLTimeInterval

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsSQLTimeInterval: TFDSQLTimeInterval read GetAsInterval write SetAsInterval;

C++

__property Firedac::Stan::Sqltimeint::TFDSQLTimeInterval AsSQLTimeInterval = {read=GetAsInterval, write=SetAsInterval};

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDSQLTimeIntervalField

Description

Returns the time interval field value.

Use the AsSQLTimeInterval property to read/write the time interval field value, represented by the TFDSQLTimeInterval structure. 

Alternatively, you can use the AsVariant property to assign time interval, packed into Variant data type, or AsString.

Example

var
  rInt: TFDSQLTimeInterval;
...
  rInt.Sign := 1;
  rInt.Kind := itYear2Month;
  rInt.Years := 5;
  rInt.Months := 11;
  ADQuery1EventInt.AsSQLTimeInterval := rInt;

See Also