Why am I getting an error 13 with this line of code?
VB Code:
ListView1.ListItems.Add "Something"
I get a type mismatch error. Why? I've never had this problem before.
Printable View
Why am I getting an error 13 with this line of code?
VB Code:
ListView1.ListItems.Add "Something"
I get a type mismatch error. Why? I've never had this problem before.
I think you need an index for the listitems
try...
VB Code:
ListView1.ListItems.Add ,, "Something"
:)
What I meant was, wait for crptblade to respond.
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
When adding a ListItem, you really don't need to give it any parameters at all, they are all optional.