Results 1 to 4 of 4

Thread: Index of selected list item

  1. #1

    Thread Starter
    Junior Member Anthrax's Avatar
    Join Date
    Oct 1999
    Location
    Maine, USA
    Posts
    29

    Post

    I have a combo box, style 1, where users can enter items into the list by typing it then hitting enter. I want the user to be able to select one of the list items already entered and be able to delete it by pressing the delete key.
    How can I delete the selected record?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Don't you maen Style = 0? In any case this code will remove the entry.

    Combo1.RemoveItem Combo1.ListIndex


    ------------------
    Marty
    Why is it called lipstick if you can still move your lips?


    [This message has been edited by MartinLiss (edited 01-25-2000).]

  3. #3
    New Member
    Join Date
    Jan 2000
    Location
    canada
    Posts
    15

    Post

    Don't forget you need to trap the delete key as well if you only want the item to delete when the DELETE key is used !!! GOOD LUCK !

  4. #4

    Thread Starter
    Junior Member Anthrax's Avatar
    Join Date
    Oct 1999
    Location
    Maine, USA
    Posts
    29

    Post

    thanks for the help!

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