Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box returns row number instead of bound numeric fi
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00043270
Message ID:
00043289
Views:
60
>Hi all. I am using VFP 3.0 for Windows.
>
>My combo box is returning the row number of the item chosen, rather than return the numeric value in column 1. The proper column (#1) is bound.
>
>The combo box is filled using the RowSourceType of "fields" and then by specifying each field in the RowSource.
>
>I remember this happening is FP 2.6 also. Anyone know how to fix this?

This is a problem with VFP3. In VFP5 you can get around it with the BoundTo property. Easiest way is to change your combo box source to an array, or SQL, and use the string value for your numeric field. Then in the lostfocus() method change the value back to a numeric type and save it or use it as you need.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform