Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox weirdness
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00408372
Message ID:
00408514
Views:
45
>From documents:

Hey, two can play at that game. < g >

From HackFox:

For combo and list boxes, things get interesting. Value can be either character or numeric. If it's character, it contains the actual text of the chosen item—as a character string. Even if the RowSource data is something other than character, when it's placed in a list or combo, it's converted to character there. If Value is numeric, it's the Index in the list or combo of the chosen item. In VFP 5 and VFP 6, you can put a numeric data item in Value (as a character string, of course) by setting the list or combo's BoundTo property to .T. In VFP 3, there's no way to use numeric data for the Value of a list or combo. This lets you show a description in the list while saving a numeric ID for the Value.


Since it sounds like what you were seeing was the situation where you were getting back the index in the list, I was assuming that your Value was numeric. I know I've had this happen to me in the past, and using the DisplayValue instead solved the problem.

The control source shouldn't be getting changed just because you said MODI FORM.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform