Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stupid Newbie ComboBox Question
Message
De
31/12/2007 14:45:15
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01278633
Message ID:
01278719
Vues:
20
>>>>Haven't had to create one from scratch in awhile. How do I force the initial display value of the ComboBox? It's based on a SQL and displays a field value. I want to choose which record is the default and then have that show up when the form is run. Thanks!
>>>
>>>You may try thisform.myCombo.ListIndex = 1 in the Init method of the form.
>>>
>>>You may also first select the needed record and then thisform.myCombo.value = thisform.myCombo.value
>>
>>That worked, but why? I set that as the default on the property form? Seems like that should have been enough.
>
>What exactly did you set as default?
>
>ListIndex you can only set in code, I think.

Let me rephrase that, ListIndex is already set to 1 as the default.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform