PDA

Click to See Complete Forum and Search --> : Clear List Box


smiletaz
Jun 22nd, 1999, 06:05 PM
I have created an application where the information entered into the database is shown in a list box in vb6. I would like suggestions on how to clear the list box when the user wants to create a new list.

thorne
Jun 22nd, 1999, 06:11 PM
if you list box is called list1 then to clear the list box use:

list1.clear


Hope that helps

jim
Jun 22nd, 1999, 10:51 PM
Hmmm...

this will only work if the listbox is not bound to a table or query. Bound listboxes do not support the Clear method.

Recommend that the listbox be created as unbound and filled thru code using AddNew method.