Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make Combobox return NUMERIC value????
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00054855
Message ID:
00054974
Views:
37
>>>Hi guys,
>>> I need to make Combobox return Num. vlaue.
>>>I have Cmb filled from SQL query that returns cursor with 3 fields ( code, description and ID )
>>>ColumnCount is set to 2
>>>BoundColumn is set to 3
>>>ControlSource is set to the bound table that expects Integer.
>>> But Value of this Combo is not value from 3-rd column but listIndex value of Combo.
>>> How can I change it without afecting DisplayValue property so Combo still shows "normal" data and stores only the value I need?
>>>TIA
>>> Dezider
>>
>>make sure boundto property is set to true.
>
>1, BoundTo property? I didn't find it for Combobox?
>using VFP 3.0b ...

you're right -- boundto is for 5

>2, Found interesting thing... I need to populate couple combos from different tables. One of these is table of countries. There is about 300 recs. and when I select country which code is higher than 99 combo goes blank and value is *******. What's going on?????? Can't it handle more than 99 recs?
>Dezider
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform