Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting default value in drop-down list
Message
 
À
07/08/1998 23:36:06
Chris Crachiolo
Blackmoor Associates Incorporated
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00124990
Message ID:
00125464
Vues:
14
>I've got an unbound combo box (Style = 2, dropdown list) with RowSourceType = Value (RowSource is a comma-delimited list of values). What I want to do is display the first item in the list as a default value, but no matter what I try, a value doesn't appear until the list is dropped down and a value is selected. I have both Value and DisplayValue set to the desired value in the form designer, and I verified at runtime -- via the command window -- that these properties do indeed contain the values I set in the form designer, but it still doesn't display until a value is explicitly selected from the list, not even when I call the control's refresh method.
>
>Anybody know a way around this?

If your rowsource is 'Allan, Emma, John', your rowsourcetype should be 1-Value.
At init event of combo box issue: This.Value = 'Allan'. Value property is case sensitive to caution you.

HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform