Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incremental Search & Disabled Combo Items

Status
Not open for further replies.

skuhlman

Programmer
Jun 10, 2002
260
US
We're using VFP7 here.

The problem is that the Incremental Search (IncrementalSearch) is not working for us when our combo box contains disabled items (we disable the selection items by using the "\" leading character). The items are appearing correctly in the list as greyed out and disabled, but the search functionality gets screwed up. Here's a sample list:

AAA 1
ABB 2

\ABC 3 -disabled
ACD 4
BBB 5
BBC 6

\BCD 7 - disabled
BCE 8
CCC 9


When the user types "AB" quickly, Item 2 shows up correctly in the combo. When the user types "BC" quickly, the combo box goes to item 5 for the "B" but stops at that instead of going to item 7 (the first "BC_" record) or item 8 (the first non-disabled "BC_" record). Additionally, if the user types "B" and pauses, item 5 is selected (correctly); then they type "B" and pause again and item 6 is selected (correctly - being the next "B" in the list; then they type "B" and pause again and item 6 remains selected instead of going on to item 7 or item 8.

Any thought on easy fixes of work arounds for this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top