
Originally Posted by
Deepa msc
Hi
My code is
{
RPointerArray<CContactDetails> iBlockList;
CleanupResetAndDestroyPushL( iBlockList );
TInt i=0;
HBufC* iValue1;
//TDesC* iValue1;
_LIT(KSQLQuery, "SELECT field1,field2,field3 FROM mytable ORDER BY field1");
this->view->Prepare((*(this->database)), TDbQuery(KSQLQuery));
this->view->EvaluateAll();
for (this->view->FirstL();this->view->AtRow();this->view->NextL())
{
// retrieve the row
this->view->GetL();
// while the rowset is on this row, can use a TPtrC to
// refer to any text columns
iValue1 = this->view->ColDes16(1).AllocL();
TBuf<50> temp(iValue1->Des());
this->iBlockList.AppendL(iValue1);
CleanupStack::Pop( iValue1 );
i++;
}
and i am getting the error in the line
this->iBlockList.AppendL(iValue1);