取CheckedListBox选中项的value值的问题 VB
condstr1 = ""
Dim i1 As Integer
For i1 = 0 To (CheckedListBox1.Items.Count - 1)
If CheckedListBox1.GetItemChecked(i1) = True Then
If condstr1 <> "" Then
condstr1 = condstr1 & "OR no ='" & CheckedListBox1.Items(i1).ToString() & "'"
Else
condstr1 = "no ='" & CheckedListBox1.Items(i1).ToString() & "'"
End If
End If
Next i1
这是我为condstr1变量赋值的一段代码,但是在执行完condstr1的值总是空的,求大神帮忙解决一下这个问题