Results 1 to 19 of 19

Thread: Deleting an item from a list

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2005
    Posts
    248

    Deleting an item from a list

    Hi all,

    I'm currently writing a program where you can add items to a listbox, and there is a button to delete the highlighted item. I have tried to do it similar to:

    Code:
    Private Sub Delete_Click()
    Dim DelMe as string
    
    DelMe = List1.selected
    List1.remove(DelMe)
    End Sub
    Well, that's really the pseudocode for what I'm trying to do. Obviously it won't work, since I must specify an index. However, I will not know the index, since it depends on which item the user clicks.

    How do I do this?

    Thanks
    Last edited by BubbleLife; Sep 27th, 2006 at 06:25 AM.

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