Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Unanswered: ListBox RemoveItem

    Does anyone have a code to delete selected items form a listbox in VB6.



    PHP Code:
     For 0 To List_Distination.ListCount 1
         
    If List_Distination.Selected(List_Distination.ListIndexThen
            DoCmd
    .DeleteObject currObj,   List_Distination.List(List_Distination.ListIndex)
            
    List_Distination.RemoveItem (List_Distination.ListIndex)
            
    lbl_DistTabNr.Caption List_Distination.ListCount
          End 
    If 
      
    Next 
    But I have problems doing it this way

    Thanks alot

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    try the VB thread on this site
    also try the VB help file, it even tells you how to do it

Posting Permissions

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