Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox behavior with integer key
Message
From
25/07/1999 21:46:50
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00244085
Message ID:
00245939
Views:
17
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform