BUG: Using Selected Method in Init Event Does Not Work (177340)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q177340 SYMPTOMS
In 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.
RESOLUTION
Use 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.
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 12/11/1999 |
---|
Keywords: | kbbug KB177340 kbAudDeveloper |
---|
|