Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox behavior with integer key
Message
De
25/07/1999 21:46:50
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00244085
Message ID:
00245939
Vues:
21
>>Thanks Jim.
>>
>>OK, I set the BoundTo to .T. and the default value shows correctly. Now when I select another value in the Combo, the displayvalue is blank. If I change the BoundTo to .F. after the initial Combo.Requery, the display is correct. I shouldn't have to switch the BoundTo property on and off programmatically, should I.
>>
>>What am I missing?
>>
>>TIA
>>
>>Rex
>
>Rex,
>
>The displayvalue will be blank when the value and the controlsource don't match each other. Check to be sure you have the BoundColumn set correctly and the ColumnCount.

BoundTo allows to match a key, but combo still wants to represent it as character, not as integer, i.e. it's still possible to have mismatch between controlsource and value.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform