Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incremental search in listbox question
Message
 
 
To
08/12/2001 13:55:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00591680
Message ID:
00591728
Views:
23
>I have a VFP 7.0 listbox that contains 10,000+ elements. Obviously I have the "IncrementalSearch set to .t." and it works fine except in the following case below. If the user types "POST" they get to "POST". However if they type in "P 0" they end up on the first "O" record and not "P O BOX". The question is how do I make the IncrementalSearch take the SPACE character into account?
>
>...
>P O BOX
>POSTAL
>POSTMAN
>...

10,000+ is too much for listbox. I would suggest to switch into grid approach instead. There is a class InGrid for incremental search in grid. Vlad G has FAQ here, how to make grid control look like ListBox.

As for your original question, it could be done using KeyPress method of the listbox. I have a combo class by Doug Henning with this functionality at work, send me a request, if you still want to use listbox. I think, there are classes in Download section here with this functionality as well.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform