Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo boxes Bible needed
Message
De
14/02/2014 14:28:03
 
 
À
14/02/2014 13:36:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01594324
Message ID:
01594330
Vues:
51
>
>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

Not a Bible but a verse... of your own.

My error is asumming drop combo just add ítem by itself. And list combo doesn't.

Then I will read what you suggested me to see combos are more friendli. Right now with your explanation I could do what I wanted to do, you've helped me a lot!

Thank you very much

Héctor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform