General information
Category:
Forms & Form designer
Environment versions
Network:
Windows 2003 Server
>To the best of my recollection, setting the selected property of the listbox in the form's Init() does not work. This is a bug. You must choose a different method.
>
>PSS ID Number: 177340
>
>Article Last Modified on 12/11/1999
>
>
>--------------------------------------------------------------------------------
>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.
Marcia,
Yes correct I now recall and also recall why I have used a grid to achief the highlight effect as requested by Jim.
Regards,
Koen
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only