BUG: Cannot Set the Selected Item for a List box in Form InitLast reviewed: April 24, 1997Article ID: Q161730 |
The information in this article applies to:
SYMPTOMSIn Visual FoxPro 3.0 the selected item in a list box can be initialized by placing the following code in the Form Init or the List box Init:
THISFORM.List1.Selected(1) = .T.This does not work in Visual FoxPro version 5.0.
RESOLUTIONPlace the following code in the Activate method of the form. The variable acts like a switch so that the code is executed only when the form is first instantiated. The variable switch should be added to the form as a property. Switch is initialized to false.
IF !THISFORM.switch THISFORM.List1.Selected(1)= .T. THISFORM.switch = .T. ENDIF STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
|
Keywords : buglist5.00 FxtoolFormdes kbprg vfoxwin vfpbug5.0a kbbuglist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |