Maybe I am missing something and doing it completely wrong or maybe it’s just not working, but I have the following problem:
I have a simple weblistbox and a button in a pagedialog, the weblistbox has 2 or more entries at least and the multipleselection enabled. What I am trying to achieve is to retrieve the rowtag values for each selected row by the user, however the code I am using is not working and only gives me the rowtag of last clicked (selected) row even if multiple we’re selected. here is a sample code I am using:
Var selections() As Integer For row As Integer = 0 To webListBox.RowCount - 1 If webListBox.Selected(row) Then Var tagVal As Integer = webListBox.RowTagAt(row).TypeInteger selections.add(tagVal) System.DebugLog("processing row index: " + row.ToString + ", with the tag value of: " + tagval.ToString) End If Next
What am I doing wrong here?