I am having problems with the listbox. I need to get multiple selections from the listbox. This is the code that I am using:
Dim itm As ListBox.SelectedIndexCollection
Dim i As Integer = 0
'Figure out which classifications have been selected.
For Each itm In Me.lstClassifications.SelectedItems
sSQL = "select ID from tblClassification Where classification = """ & itm.Item(i).ToString & """"
i += 1
Next
I want to declare itm as a ListItem but it is not available. Why is this happening?
Thanks,
enak
Dim itm As ListBox.SelectedIndexCollection
Dim i As Integer = 0
'Figure out which classifications have been selected.
For Each itm In Me.lstClassifications.SelectedItems
sSQL = "select ID from tblClassification Where classification = """ & itm.Item(i).ToString & """"
i += 1
Next
I want to declare itm as a ListItem but it is not available. Why is this happening?
Thanks,
enak