<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Delete item and then insert item in Listbox. - Comments</title>
 <link>http://www.newlc.com/en/forum/delete-item-and-then-insert-item-listbox</link>
 <description>Comments for &quot;Delete item and then insert item in Listbox.&quot;</description>
 <language>en</language>
<item>
 <title>Re: Delete item and then insert item in Listbox.</title>
 <link>http://www.newlc.com/en/forum/delete-item-and-then-insert-item-listbox#comment-40921</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Before inserting listbox,add this line to reset all items from listbox&lt;/p&gt;

&lt;p&gt;ilistbox-&gt;Model()-&gt;ItemTextArray()-&gt;Reset();&lt;/p&gt;

&lt;p&gt;regards,&lt;br /&gt;
eswar&lt;/p&gt;</description>
 <pubDate>Wed, 22 Aug 2007 15:21:51 +0200</pubDate>
 <dc:creator>eswar_illuri</dc:creator>
 <guid isPermaLink="false">comment 40921 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Delete item and then insert item in Listbox.</title>
 <link>http://www.newlc.com/en/forum/delete-item-and-then-insert-item-listbox#comment-40777</link>
 <description>&lt;p&gt;hi,&lt;br /&gt;
As ur requirement &lt;div class=&quot;bb-quote&quot;&gt;&lt;blockquote class=&quot;bb-quote-body&quot;&gt;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.&lt;/blockquote&gt;&lt;/div&gt;  Logically u do like this :---&lt;br /&gt;
a) when u need to Add new items just before count all items in Listbox and delete them, and after that&lt;br /&gt;
b) You Add new items in ur Listbox.&lt;br /&gt;
U take a look to this tutorial from NewLC for How to add an item and also How to remove an item:---&lt;br /&gt;
&lt;a href=&quot;http://newlc.com/ListBox-Part-VI.html&quot;&gt;http://newlc.com/ListBox-Part-VI.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 16 Aug 2007 22:06:10 +0200</pubDate>
 <dc:creator>chandantheracer</dc:creator>
 <guid isPermaLink="false">comment 40777 at http://www.newlc.com</guid>
</item>
<item>
 <title>Delete item and then insert item in Listbox.</title>
 <link>http://www.newlc.com/en/forum/delete-item-and-then-insert-item-listbox</link>
 <description>&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;I have a CAknColumnListBox listbox in Symbian C++ S60 3rd Edition FP1.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;How can it be done. Any ideas and or some sample code would be helpful to me.&lt;/p&gt;

&lt;p&gt;Thanks in Advance.&lt;br /&gt;
Nand Kumar&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/delete-item-and-then-insert-item-listbox&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/delete-item-and-then-insert-item-listbox#comments</comments>
 <category domain="http://www.newlc.com/en/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Thu, 16 Aug 2007 17:50:09 +0200</pubDate>
 <dc:creator>Nand</dc:creator>
 <guid isPermaLink="false">18670 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
