kimt
10-23-2004, 08:39 PM
Have filled a listview with checkboxes with ID, Lastname and firstname. I now want to add the ID to a collection but am having trouble identifying that all are in the collection. Here is what I have:
Dim i As Integer
Dim cCol As New Collection
With listview1
For i = 1 To .ListItems.Count
If .ListItems(i).Checked Then
lngID = .ListItems(i).Checked ' this returns True/False
lngid = .selecteditem 'returns the current item only
cCol.Add lngID
End If
Next i
End With
When one or all checkboxes are checked, I would like to 'collect' them to further manipulate the data.
Any help would be greatly appreciated.
Thanx.
Kim
Dim i As Integer
Dim cCol As New Collection
With listview1
For i = 1 To .ListItems.Count
If .ListItems(i).Checked Then
lngID = .ListItems(i).Checked ' this returns True/False
lngid = .selecteditem 'returns the current item only
cCol.Add lngID
End If
Next i
End With
When one or all checkboxes are checked, I would like to 'collect' them to further manipulate the data.
Any help would be greatly appreciated.
Thanx.
Kim