Results 1 to 3 of 3

Thread: Clear List Box

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Huntsville, Al, USA
    Posts
    6

    Post

    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.

  2. #2
    New Member
    Join Date
    Jun 1999
    Location
    kaysville, Ut, US
    Posts
    13

    Post

    if you list box is called list1 then to clear the list box use:

    list1.clear


    Hope that helps

  3. #3
    Junior Member
    Join Date
    Jun 1999
    Location
    Papillion, NE, USA
    Posts
    21

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width