Hey all,
I have created an AutoComplete ComboBox that is working beautifully, a user inputs text a string that is similar to their text is returned etc.
Well, my boss has informed me that he wants the list of items to change accordingly to what is keyed into the Combo Box so if a user inputs an 'F' the list will resize to only items containing F.
This is my problem. I can resize the list based upon what is keyed into the combo box BUT i call [combobox].items.clear(); then repopulate the list with the subset of data.
After calling [combobox].items.clear(); my autocomplete methods stop working because all of my calls to FindString, FindExactString, etc return 0 and -1, respectively.
This obviously has to do with me resizing the list but is there any way around it?
I have used [combobox].items.add as well as DataBindings to add items to the list in an attempt to circumvent my problem, but to no avail!
Any help would be greatly appreciated.
================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile
================================================== =========