Delete item and then insert item in Listbox.
| Thu, 2007-08-16 16:50 | |
|
Hi I have a CAknColumnListBox listbox in Symbian C++ S60 3rd Edition FP1. What my requirement is that during the runtime I want to delete all the items present in the listbox and then I want to insert the new set of items in the listbox. How can it be done. Any ideas and or some sample code would be helpful to me. Thanks in Advance. |
|






Forum posts: 93
hi,
As ur requirement
a) when u need to Add new items just before count all items in Listbox and delete them, and after that
b) You Add new items in ur Listbox.
U take a look to this tutorial from NewLC for How to add an item and also How to remove an item:---
http://newlc.com/ListBox-Part-VI.html
Thanks & Regards,
C Singh
Forum posts: 141
Hi,
Before inserting listbox,add this line to reset all items from listbox
ilistbox->Model()->ItemTextArray()->Reset();
regards,
eswar