Results 1 to 3 of 3

Thread: Change item in a listbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Question

    how can i change the select item in a listbox...
    like the selected line contained a word "something" and i want to change the word "something" to "nothing"... how can i change the property... forgot, and the word "something" is the 3rd one in the listbox....

    thanks....
    ngphuocthinh

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84

    Arrow

    Just change the List property of a selected item or given item to the new text.

    Code:
       If List1.ListIndex <> -1 Then
          List1.List(List1.ListIndex) = "new ListItem"
       End If
    
    or:
    
       List1.List(3) = "new ListItem"
    Hope this helps

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Smile Thank you alot

    thanks alot...
    ngphuocthinh

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