Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox programmatically select & highlight
Message
From
29/06/2011 11:58:16
 
 
To
29/06/2011 07:18:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01515590
Message ID:
01516711
Views:
62
>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
Map
View

Click here to load this message in the networking platform