Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Boxes?
Message
From
11/12/1999 01:55:23
 
 
To
10/12/1999 18:00:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00302046
Message ID:
00302187
Views:
32
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; }
Previous
Reply
Map
View

Click here to load this message in the networking platform