FireDAC.Comp.DataSet.TFDDataSet.SourceView

From RAD Studio API Documentation
Revision as of 16:26, 15 September 2016 by L10nBot (talk | contribs) (fixed links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

property SourceView: TFDDatSView read FSourceView;

C++

__property Firedac::Dats::TFDDatSView* SourceView = {read=FSourceView};

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;

See Also

Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=FireDAC.Comp.DataSet.TFDDataSet.SourceView&oldid=777618"