FireDAC.Comp.DataSet.TFDDataSet.SourceView
From RAD Studio API Documentation
Delphi
property SourceView: TFDDatSView read FSourceView;
C++
__property Firedac::Dats::TFDDatSView* SourceView = {read=FSourceView};
Contents
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Description
Specifies the reference to the DatS view object whose rows the dataset is navigating.
The SourceView property returns a reference to the TFDDatSView object whose rows the dataset is navigating. The view is automatically built by FireDAC as a result of applying filters, indexes, and ranges.
The view is destroyed after the dataset is closed.
Example
var i, iVal, iMax: Integer; .... // searching the maximum value of ID integer field, without navigating through dataset iMax := 0; for i := 0 to FDQuery1.SourceView.Rows.Count - 1 do if FDQuery1.SourceView.Rows[i].GetData('id', @iVal) and (iVal > iMax) then iMax := iVal;