How to grab value of selected item from CcXploreListView Control

  • Thread starter Thread starter CMA
  • Start date Start date
C

CMA

I have added the Explorer List View ActiveX control to my for
(CcXploreListView). I am able to successfully query the number of selected
items and whether an individual item is selected or not. What I have been
unable to determine is how to grab the actual highlighted value (filename).

Do While icount < ListView.ListCount
If ListView.Selected(icount) = True Then
??????? myfile = ListView.SelectedItem.Text ???????
ifound = ifound + 1
End If
icount = icount + 1
Loop
 
CMA said:
I have added the Explorer List View ActiveX control to my for
(CcXploreListView). I am able to successfully query the number of
selected
items and whether an individual item is selected or not. What I have been
unable to determine is how to grab the actual highlighted value
(filename).

Do While icount < ListView.ListCount
If ListView.Selected(icount) = True Then
??????? myfile = ListView.SelectedItem.Text ???????
ifound = ifound + 1
End If
icount = icount + 1
Loop

Not_entirely_ sure, but I think you need to replace:

myfile = ListView.SelectedItem.Text

with:

ListView.Selected(icount).Text
 
Back
Top