8 Replies Latest reply on Feb 9, 2007 1:36 PM by Pyro_sk8er

    Listbox Item Undefined

      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. i figure this is the best place to get it.