Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo boxes Bible needed
Message
From
14/02/2014 13:36:44
 
 
To
14/02/2014 13:07:44
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01594324
Message ID:
01594325
Views:
118
This message has been marked as the solution to the initial question of the thread.
Likes (2)
>Hi Friends:
>
>Someone has to write the "VFP Combo boxes Bible"
>
>You know, when you find this kind of work you buy it and then you discover only one page in 999 has something you need, ten pages has topics you know and the rest has topics you will never use.
>
>Combo boxes have never been my Friends, someway I use them for specific features but i've never relied on them. But this time is the best option. I need combo box do what VFP promise, let me input a value and take it. I can choose but when I input a value this is deleted just when I press enter and remains blank. I had to convert numeric value (I want to input or choose a number) to alphabetic value so that combo displays exactly what I desire, but now I can't input a value.
>
>Don't ask for a Bible but anyone can reveal this secret to me?

See whether this paper helps you, in general: http://www.tomorrowssolutionsllc.com/Conference%20Sessions/Combos%20and%20Lists-The%20Forgotten%20Controls.pdf

For the particular problem you're having, I think the issue is that you have a Combo with Style set to 0 and you're trying to keep the value I user types in that's not in the list. Here's what we said about that in the Hacker's Guide:

More importantly, when a user of a drop-down combo (Style = 0) types in a string that isn't in the list, that string is stored in DisplayValue and not in Value. You can tell whether the user has typed something in by either comparing DisplayValue to Value (if BoundColumn is 1) or by checking whether Value is empty, in the combo's Valid. If so, you need to do something with DisplayValue. The user's entry is not automatically added to the combo's list. You can do so with code (for appropriate RowSourceTypes)—see the example.

The other problem you might mean from your question is that the data in the list is numeric and you're having trouble storing the right result. For that problem, set the combo's BoundTo property to .T.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform