Albert D. Kallal
Member
- Local time
- Today, 10:22
- Joined
- Jun 11, 2009
- Messages
- 97
Yes, if you going to have users type in place of selecting a value, then what I suggest? You need more code.How can this be useful? I tested code. As soon as I type first letter, code sets focus to other control. I can never enter a full value. This is no better than Click event.
So, you will require additional code to check if what they typed in matches a value in the list - and then you move focus. Really no other way to have some focus change if they not finished typing - unless you want something else to occur?
In a way the problem was always how you going to have a event trigger based on "when" they are finished typing.
Kinda why hitting tab is in general required.
But if user not going to hit tab?
Then we require a means to figure out when they are done typing - how could we know?
So, the REAL question then becomes:
How can we tell if a user is done typing something, and then trigger an event?
So if you going to allow typing as opposed to assuming users will select a drop down value?
Then only solution is to check the .Text value and check if what's typed in matches something in the list....
However, often there will be a match, but if the user types MORE then additional matches will occur.
So, really, this is a rather difficult issue if one is to allow typing. I can't really think of a way to determine when the user is done typing.
Since there's not a way to do this?
Then I assumed (wrong here BTW) that this was a drop down selecting process - not a typing selecting.....
A interesting little problem. If all values were rather "unique", then we could perhaps test the .SelText which is going to be the "auto matched" part, and that would be different length then the .Text. (hence a possible solution if entries are very different).
However, matches will thus occur during typing, and if additional typing to further narrow down the current auto match? Hum, no real way to read the human mind.....
I suppose one could consider that after some time delay and the user not typing anymore, we assume the current entry then?
R
Albert
Last edited: