Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box problem
Message
From
15/09/1999 11:31:50
 
 
To
15/09/1999 11:25:22
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00264983
Message ID:
00264993
Views:
20
Try moving the search code into the Keypress event, looking for some special key to kick off the search, like Enter.
IF nKeyCode = 13
  ** Do the search
ENDIF
>Hello again:
>
>I have a combobox on my form that has a great deal of code in the interactive change. The problem is that if you type in a name using the incremental search option, the code in the interactive change executes each time eating the keystrokes.
>
>So if you type A m b looking for Ambit, you get AAA systems, then Matrox, then Bally. No matter how fast or slow you type.
>
>I changed the _dblclick in the got focus as suggested in a previous thread and it works better; however, now if you type fast, you get the same response as above. If you type slower, it will find the correct line item in the combobox.
>
>My question is:
>
>Is there any way to tell that the user is still typing or if the user has finished the selection process. I would like to move the code from the interactive event to the lostfocus event, but I have to know when to shift the focus so that the screen fields update with the information from the new customer record.
>
>Thanks in advance.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform