Provides direct access to the ADO Recordset object.
property Recordset: _Recordset;
__property _Recordset Recordset;
Recordset is the interface through which the records of an ADO dataset are accessed. When you open an ADO dataset, the value of Recordset is automatically set to the interface that provides access to the records. This value should not be used until after an OnRecordsetCreate event occurs.
Use Recordset to get direct access to the ADO Recordset object the dataset component represents. This direct access reference allows an application to use properties and methods of the underlying Recordset object. Accessing the underlying Recordset object is especially useful for utilizing properties and methods of the Recordset object not surfaced in ADO dataset components.
Ordinarily, an application would seldom need to access the underlying Recordset object directly. One situation that would use such access is directing the Recordset produced by the execution of a TADOCommand component. In these situations, assign the Recordset returned by the Execute method (TADOCommand) directly to the Recordset property.
ADODataSet1.Recordset := ADOCommand1.Execute;
ADODataSet1->Recordset = ADOCommand1->Execute();
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!