Hi,

Need to extract SMS details info such as 'From, Subject, Date, Time, Type' from the user selected SMS messages. I am able loop thru the user selected SMS messages. But, when query for the details using the ChildrenL() function, the count is zero and i get nothing.

The following is the code:
--------------------------

CMsvEntry* context1 = iSession->GetEntryL(aMessageId);
CleanupStack::PushL(context1);

CMsvEntrySelection* entries = context1->ChildrenL();

CleanupStack::PopAndDestroy(context1) ;

TInt nCount = entries->Count();

for(TInt index = 0; index < nCount; index++)
{
TMsvId entryID = entries->At(index);

context1 = iSession->GetEntryL(entryID);
CleanupStack::PushL(context1);

TMsvEntry msvEntry = context1->Entry();

TDesC& descripton = msvEntry.iDescription;

CEikonEnv::Static()->InfoWinL(descripton, _L("2nd string parm."));

CleanupStack::PopAndDestroy(context1);
}


For testing purpose, i have put the InfoWinL() function.

Need your help on where i made the error.

Thanks,
Peri