Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to set default value for combobox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00427909
Message ID:
00428098
Vues:
16
>Hello Trey,
>
>I had THISFORM.combobox.Value = "County" in my Form Init, but it's not getting into the form. And I have THISFORM.Refresh at the end of the Form Init code.
>And "County1" is one of the values in RowSource as in County1, County2, County3.
>

The problem is, after you set the value property, you call refresh (actually, you don't even have to call refresh, it happens automatically after the init), which sets the value of the bound combp back to the value of the field it is bound to. To set the value of the combo, set the value of the underlying field.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform