R
rr
I have a list view with several rows and would like to populate it using a
loop. However when I try to use a variable in the obejct name it fails and
says obejct
doest exist. Is there some object id cat operator?
Here is a snippet:
Dim item1 As New ListViewItem("stuff1")
Dim item2 As New ListViewItem("stuff2")
Dim item3 As New ListViewItem("stuff3")
Dim item4 As New ListViewItem("stuff4")
Dim i as Integer
for i=0
If Not PingPC(item + cstr(i).Text) Then
RowColor(item + cstr (i))
Else
InsertIp(item + cstr (i))
End If
next
It fails stating there is no itemi, I have also tried item + cstr(i)
Any suggestions or otyher ways to populate a listview.
thanks
Robert
loop. However when I try to use a variable in the obejct name it fails and
says obejct
doest exist. Is there some object id cat operator?
Here is a snippet:
Dim item1 As New ListViewItem("stuff1")
Dim item2 As New ListViewItem("stuff2")
Dim item3 As New ListViewItem("stuff3")
Dim item4 As New ListViewItem("stuff4")
Dim i as Integer
for i=0
If Not PingPC(item + cstr(i).Text) Then
RowColor(item + cstr (i))
Else
InsertIp(item + cstr (i))
End If
next
It fails stating there is no itemi, I have also tried item + cstr(i)
Any suggestions or otyher ways to populate a listview.
thanks
Robert