Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box incremental search
Message
From
02/06/2003 18:13:06
 
 
To
02/06/2003 17:31:43
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00795427
Message ID:
00795446
Views:
20
Hi Stephen.

Since VFP 3.0 I have always had problems with the native VFP combo Box. Depending on the speed of the computer the user had, and how fast they would type I sometimes would get different results. Like for instance if I had a combo box based on a states library and on machine 1 I type "NY" the value of the combo box would sometimes go to "NY" sometime go to the first State that started with "Y".

This will work for combo boxes with style = 2-Drop Down List.

Add a propert to the combo called nOldIncSeek and initialize it to 0 in the property sheet. This code in the GotFocus()
THIS.noldincseek = _incseek
_incseek = 1.5
And this code in the LostFocus():
_incseek = THIS.noldincseek
If you are using a version of VFP prior to 7, the your need to look at _dblclick instad of _incseek
Previous
Reply
Map
View

Click here to load this message in the networking platform