Arnaud,
maybe I'm missing something...
in my experience, combo boxes already have built in typeahead
why are you adding it?

Also, why loop, reducing the length of the entered data, when the data 
entered by the user is not valid (not in the combo's list) to try to 
get an acceptable entered item?
Is this not going to potentially create lots of problems?

ex:
combo contains 5 names, all start with the letter A.
User enters : Abraham  (there is no abraham in the list, and no name 
with first 2 characters Ab)
so your code reduces the user entry to "A@"
This results in the selection of the name Aaron, which is populated 
into the combo, AND into the underlying var(s)/field(s).
Since this code is run during On Data Change, the user has already 
tabbed out of the combo, there is no warning that the user entry was 
not found, and if they are not paying attention - these are users after 
all ;) - a now incorrect entry has been made.


On Thu, 20 Oct 2016 13:53:22 +0200, Arnaud de Montard wrote:
> 
>> Le 20 oct. 2016 à 08:01, Janet Jonas <[email protected]> a écrit :
>> 
>> Chip, thanks for your efforts. I can see ways to streamline the 
>> events if I have to roll back to the combo box.
> 
> Here's some code I use for "mandatory combo":
> <http://forums.4d.fr/Post/FR/11578036/1/11578037#11578225>
> Not marvelous but better for keyboard addicts / mouse haters. 
> 
> Note: if translation from 4DBB is too bad (code v12), I can add the .c4d. 
> 
> -- 
> Arnaud de Montard 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to