GetRecordsetObj
Syntax:
LPUNKNOWN GetRecordsetObj ();
Return
Value: The pointer to
IUnknown interface of ELS-QB component’s recordset object or NULL if no such object
exists yet.
Remarks:
Call
this method to obtain a pointer to a result recordset of a query currently
opened in ELS-QB component.
Note: The result recordset is created during the SQL statement
execution processwithin
ELS-QB component.
Example:
This sample code demonstrates how to use the pointer ELS-QB
control’sinternal
Recordset object returned by GetRecordsetObj() method to completethe
task of filling of some FlexGrid
object created
within host application withthe
results of ELS-QB control currently active query.
void
CELS_QBDemoView:: FillFlexGrid (_RecordsetPtr lpRst)
{
if(lpRst ==
NULL)
return;
...................
//
Some data processing here
...................
}
..................
..................
void
CELS_QBDemoView::OnCommandFillflexgrid()
{
// This will open a FlexGrid window and then will fill
// it with the current recordset of ELS-QB control.
FillFlexGrid(m_QBCtrl.GetRecordsetObj());
}