Hi,
I am trying to add a listview to my code ...
Here is my code so far :
Sub PopulateList()
Dim ListOEM As ListItem
lstvOEM.View = lvwList
Set ListOEM = lstvOEM.ListItems.Add(, ,"This is a test1")
ListOEM.SubItems(0) = "This is a test2"
Set ListOEM = Nothing
end sub
But i get an error at
ListOEM.SubItems(0) = "This is a test2"
Invalid property value
I checked but can't find what I am doing wrong ?
(I am using VB6 - SP6)
Thanks
I am trying to add a listview to my code ...
Here is my code so far :
Sub PopulateList()
Dim ListOEM As ListItem
lstvOEM.View = lvwList
Set ListOEM = lstvOEM.ListItems.Add(, ,"This is a test1")
ListOEM.SubItems(0) = "This is a test2"
Set ListOEM = Nothing
end sub
But i get an error at
ListOEM.SubItems(0) = "This is a test2"
Invalid property value
I checked but can't find what I am doing wrong ?
(I am using VB6 - SP6)
Thanks