Good Afternoon,
I have a listbox that contains the string
'Q1. AnswerID 24(0-20%) Unlocks Q2a.' When I use the following code I get the full string. I need to get the Values 24 and Q2a from the string to determine if this is the row the user wants to delete. Thank you in advance for any insight.
If Me.lstSkipLogic.SelectedItems.Count <> 0 Then
' If so, loop through all checked items and print results.
Dim x As Integer
Dim s As String = ""
For x = 0 To lstSkipLogic.SelectedItems.Count - 1
s = s & "Checked Item " & CStr(x + 1) & " = " & _
CStr(Me.lstSkipLogic.SelectedItems(x)) & ControlChars.CrLf
Next x
MessageBox.Show(s)
End If
I have a listbox that contains the string
'Q1. AnswerID 24(0-20%) Unlocks Q2a.' When I use the following code I get the full string. I need to get the Values 24 and Q2a from the string to determine if this is the row the user wants to delete. Thank you in advance for any insight.
If Me.lstSkipLogic.SelectedItems.Count <> 0 Then
' If so, loop through all checked items and print results.
Dim x As Integer
Dim s As String = ""
For x = 0 To lstSkipLogic.SelectedItems.Count - 1
s = s & "Checked Item " & CStr(x + 1) & " = " & _
CStr(Me.lstSkipLogic.SelectedItems(x)) & ControlChars.CrLf
Next x
MessageBox.Show(s)
End If