'ItemTextArray' : is not a member of 'MListBoxModel'

Login to reply to this topic.
Fri, 2004-07-09 06:17
Joined: 2004-06-14
Forum posts: 22
i trying to read binary setting value from a listbox with the code below, but i got an error 'ItemTextArray' : is not a member of 'MListBoxModel'

myListBox= STATIC_CAST(CEikListBox*, iDetailsList->ListBox());
TInt currentItem = myListBox->CurrentItemIndex();
MDesCArray* itemList = myListBox->Model()->ItemTextArray();
CDesCArray* itemArray = (CDesCArray*) itemList;

Fri, 2004-07-09 10:18
Joined: 2003-10-22
Forum posts: 100
'ItemTextArray' : is not a member of 'MListBoxModel'
Hey,

Maybe you could try casting your listbox to CEikTextListBox instead of CEikListBox since the ItemTextArray()  is a member of CEikTextListBoxModel not MListBoxModel.

                                             Regards, Aljaz
  • Login to reply to this topic.