RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomADODataSet.NextRecordset Method

Provides access to a secondary recordset.

Pascal
function NextRecordset(var RecordsAffected: Integer): _Recordset;
C++
__fastcall _Recordset NextRecordset(int RecordsAffected);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!