FireDAC.Comp.DataSet.TFDDataSet.GetRow
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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
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));