Read-only archive of the All About Symbian forum (2001–2013) · About this archive

TextListbox: Get the text (caption) of the current item.how?

1 replies · 2,089 views · Started 06 January 2003

I want to get the caption of the selected item, but how can I do it? I only
found a way to get them itemindex...

Can somebody help me?

C'ya

You must query the listbox model.

[code:1]MDesCArray* array = iListBox->Model()->MatchableTextArray();
TInt currentitem = iListBox->CurrentItemIndex();
TPtrC16 itemtext = array->MdcaPoint(currentitem);
[/code:1]