PDA

Click to See Complete Forum and Search --> : MultiSelect in listview


Jennifer_R
Nov 1st, 1999, 12:52 AM
I have a listview set up in the report style. I wnat the user to be able to select numerouse lines and then click a button which will modify the lines selected. What I don't understand is how to identify what is selected. If there are more than one item.

Any help would be appreciated thanks
Jennifer

Aaron Young
Nov 1st, 1999, 01:40 AM
You need to use the Selected Property to determine which Items are Selected, eg.

Private Sub Command1_Click()
Dim I As Integer
With ListView1.ListItems
For I = 1 To .Count
If .Item(I).Selected Then
'Item is Selected,
'Perform Whatever to this Item Here.
End If
Next
End With
End Sub



------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net