Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display Value
Message
De
08/10/2003 15:59:41
 
 
À
08/10/2003 15:45:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00836438
Message ID:
00836456
Vues:
11
What's interesting is that if I set the DisplayValue and Value properties to "N" on the property sheet nothing will show in my combobox. BUT...if I set those same properties through code (as you show below) the value shows up just fine. BUG?

>SWAG:
>Is the Value in the combo's RowSource? If it's not it won't show up.
>e.g.,
>
>ocombo.AddItem("A")
>ocombo.AddItem("B")
>ocombo.AddItem("C")
>ocombo.DisplayValue="D" && you see D
>ocombo.Value="D"        && you see nothing
>
>
>>When I put a something in the Value property of a combobox, nothing displays on the screen for that combobox. Whereas, if I put something in DisplayValue something will display. If I put a value in both, nothing will display. I am sure I am doing something wrong, or forgetting to switch another property somewhere. What can I do to have a default value display on the screen as well as have something stored in the value property? I would prefer to do this on the property sheet and not hardcode it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform