FireDAC.Comp.DataSet.TFDDataSet.GetRow

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

function GetRow(ABuffer: TRecBuf = C_NIL; AForceBufferRead: Boolean = False): TFDDatSRow;

C++

Firedac::Dats::TFDDatSRow* __fastcall GetRow(Data::Db::TRecBuf ABuffer = 0x0, bool AForceBufferRead = false);

Description

Returns a DatS row.

Call the GetRow method to get a DatS row object for the specified dataset record buffer or for the current record. 

If ABuffer is specified, then FireDAC takes the assocciated row object from it. Otherwise, it uses the TDataSet.ActiveBuffer value which corresponds to the current position in the dataset.

Example

var
  oRow: TFDDatSRow;
.....
oRow := FDQuery1.GetRow;
// cancel all changes for this row
oRow.RejectChanges;

Example

// shows the content of the current dataset row
ShowMessage(FDQuery1.GetRow.DumpRow(True));

See Also