Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement