BUG: eVB: ListView: Comparison Statement with Selected Property Fails (262417)
The information in this article applies to:
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q262417 SYMPTOMS
If you compare the Selected property of the ListView control with True, the comparison fails.
RESOLUTION
To work around this problem, do not compare the Selected property with True. Replace the Command1_Click event code in the sample under "Steps to Reproduce Behavior" with the following:
Private Sub Command1_Click()
If ListViewCtrl1.ListItems.Item(1).Selected Then
MsgBox "Item1 selected"
Else
MsgBox "Item1 not selected"
End If
End Sub
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbDSupport kbprb KB262417 |
---|
|