FireDAC.Comp.DataSet.TFDSQLTimeIntervalField.AsSQLTimeInterval

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDSQLTimeIntervalField

Delphi

property AsSQLTimeInterval: TFDSQLTimeInterval read GetAsInterval write SetAsInterval;

C++

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

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