Results 1 to 4 of 4

Thread: Retrieving text from a listbox

  1. #1

    Thread Starter
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    How can I retrieve the text from a specific entry in a listbox. I want to use the ListIndex property. The way the MSDN files say to do it is this:

    List(List1.ListIndex)

    However, when I do that, VB gives me an error saying that List is an undefined function. So, what can I do?

    ------------------
    Ryan

  2. #2
    Guest

    Post

    Use list1.text

    Index it with the index number


    ------------------
    Boothman
    There is a war out there, and it is about who controls the information, it's all about the information.


  3. #3
    New Member
    Join Date
    Feb 2000
    Location
    Salem, Oregon, USA
    Posts
    14

    Post

    Like this:
    list1.ListIndex = ndexNumber
    Result=list1.Text


    Hope this helps somewhat!

    Litehouse...

  4. #4

    Thread Starter
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    ok, thanks

    ------------------
    Ryan

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