BUG: Using Selected Method in Init Event Does Not WorkLast reviewed: December 4, 1997Article ID: Q177340 |
The information in this article applies to:
SYMPTOMSIn Visual FoxPro versions 5.x, programmatically using the Selected method to select an item in a list box does not work in the Init method of a list box or a form.
RESOLUTIONUse the following method to programmatically select an item in the Init method of a list box or a form:
Thisform.List1.DisplayValue = Thisform.List1.List(1) && This will select && the first item. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThis problem does not occur in Visual FoxPro versions 3.x.
Steps to Reproduce Behavior
|
Additional query words: Listbox Selected
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |