Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox programmatically select & highlight
Message
De
29/06/2011 11:58:16
 
 
À
29/06/2011 07:18:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01515590
Message ID:
01516711
Vues:
63
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform