Jump to content


ListBox - Undefined


  • You cannot reply to this topic
No replies to this topic

#1 flamereaper

    Young Padawan

  • Members
  • Pip
  • 65 posts
  • Gender:Male
  • Location:UK

Posted 08 February 2007 - 03:55 PM

Hey all.

Im working on aproject that populates a listbox with XML data, the user can enter a string and search tyhrough the items in the box. The problem comes when i then display the results of the search. I remove all the items in the listBox, then i loop through the array of results each time adding that ellement back into the listbox.

My problem is that after the results are displayed. the rest of the visible listBox is populated with Undefined ellements. This looks really bad and i was wondering if there was a way that i could remove these elements. ( i know i could just set the rowCount to the size of the array but that then resizes the listbox which i would like to avoid)

Thanks in advance for any help.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users