Hallo,
need some help
After I got a pointer to the Listbox I dont know how to get the text of the selected item.
I searched the forum, nothing.
Such as:
Model()->ItemText(ItemSelected) brings no success.
In this state the app crashed after Dialog OK pressing.
Plz help.
case ECommand2_1: //free
{
CArrayFixFlat<TInt>* indexArray = new(ELeave)CArrayFixFlat<TInt>(5);
CleanupStack::PushL(indexArray);
CAknListQueryDialog* dlg = new (ELeave) CAknListQueryDialog(indexArray);
if ( dlg->ExecuteLD(R_DEMO_LIST_QUERY ) )
{
CEikListBox* zzz = new (ELeave) CEikListBox;
zzz = dlg->ListBox();
TInt ItemSelected = zzz->CurrentItemIndex();
//How to access the items text ??????????????
}
CleanupStack::PopAndDestroy();// indexArray
}
break;



