Data.Win.ADODB.TCustomADODataSet.NextRecordset

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NextRecordset(var RecordsAffected: Integer): _Recordset;

C++

Winapi::Adoint::_di__Recordset __fastcall NextRecordset(int &RecordsAffected);

Properties

Type Visibility Source Unit Parent
function public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TCustomADODataSet

Description

Provides access to a secondary recordset.

Call NextRecordset in situations where multiple recordsets are returned to provide access to the second (and subsequent) recordsets. The ADO Recordset object returned by NextRecordset must be assigned to the Recordset property of an ADO dataset component, such as TADODataSet, to be accessible.



ADODataSet1.Recordset := ADOQuery1.NextRecordset



ADODataSet1->Recordset = ADOQuery1->NextRecordset;



RecordsAffected is the number of rows in the returned recordset.