Results 1 to 6 of 6

Thread: Ok, what's wrong?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Ok, what's wrong?

    Why am I getting an error 13 with this line of code?

    VB Code:
    1. ListView1.ListItems.Add "Something"

    I get a type mismatch error. Why? I've never had this problem before.

  2. #2
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    I think you need an index for the listitems

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    try...
    VB Code:
    1. ListView1.ListItems.Add ,, "Something"

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    What I meant was, wait for crptblade to respond.

  5. #5
    Stiletto
    Guest
    hipopony66, when your write '.Add' and space, you will see a tooltip popup, which tells you what kinda parameters and info you should give. Just pass the parameters with the exact order

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    When adding a ListItem, you really don't need to give it any parameters at all, they are all optional.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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