Char by char field controle ?

jvincent

Registered User.
Local time
Today, 23:45
Joined
Apr 30, 2005
Messages
99
Hello,

In a form i have a field and i would like to test the field value character by character.
Ex : if the user typed ABCDE i want to detect the A as soon as the user typed A, etc..
I want to test each value of my field
A
AB
ABC
ABCD
and this before the user quit the field
I tried to to test with keydown event but the field value is null until user goes to the next field. i tried to concate each keycode but it's a little complexe if user press SUPPR, backtab, insert etc...
I want use this to do a search (like in listbox)
Thanks in advance for help.
VINCENT
 
Try looking at the OnChange event of the text control. this fires every time the contents of a text field changes.

HTH.
 
Hi Dembrey,
Thank you for the response.
I tried to test change event. Yes, each time i type a character program stop in the 'change event' procedure but the fields value stays empty until i quit the field. I would like to test the successive values of my field.
VINCENT
 
Thank you very much Pat field.text works great !
 

Users who are viewing this thread

Back
Top Bottom