I have a listview in my application which now enables multiple entries
to be selected. I now need to put the value of the selected entries
into a string to be used for reporting purposes.
I use the following syntax but keep getting the error "Specified cast
is not valid". I don't know what's causing this ? Can anybody help ?
For Each Item As ListViewItem In
frmRepParams.lstAnalysis.SelectedItems
If Len(strAnalysis) = 0 Then
strAnalysis = Item.Text
Else : strAnalysis = strAnalysis & ", " &
frmRepParams.lstAnalysis.SelectedValue
End If
Next