General information
Category:
ActiveX controls
>I have a listview control on a form that in one project works as it should but in another doesn't. I get a "Run-time error '13' - Type Mismatch" error when I try to add a new item to a listview control.
>
> Dim L As ListItem
>
> Set L = lvwSelected.ListItems.Add(, , "Item 1")
>
>The same exact control and the form the control is in works correctly in one project but not in another. Anyone know what's going on? TIA.
Do you have any other variable named L (global or private) declared with a different type?
I would try to use a longer name than that.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only