Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Boxes?
Message
De
11/12/1999 01:55:23
 
 
À
10/12/1999 18:00:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00302046
Message ID:
00302187
Vues:
31
Hi Tyler.

>> I have a combo box with an ID in one column and a name in the second column. Is it possible so that the user can type the first letter of the name and have the ID show up as the displayvalue? <<

I'm a bit confused by your question and not sure what you are really asking.
Combo boxes always take their DisplayValues from column #1 of their RowSources.

If you are asking about Incremental Search, set the style property of the combo to 2-DropDown List, Set IncrementalSearch = .T. and put this code in the GotFocus:

_DBLCLICK = 1.5

And this code in the LostFocus

_DBLCLICK = .5

It is the system variable _DBLCLICK that determines how long VFP will "wait" between keystrokes before resetting the search string in an incremental search.

If you are asking about something else, I don't have an answer because I don't understand the question ;-)

M .Signature { margin-top: 12px; color: #666666; } .Signature a { color: #666666; }
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform