How do i get each letter as it is typed in an entry field?

Hi,

I have an entry field that I want the user to type in what they are looking for, in this case, a customer name. I want the program to receive each letter as it is typed. Right now, I can get the previous letter as it is typed from the event, but I need the current letter.

For example, when the user types "G" in the field, the event-proc returns to the field variable blank, then when the user types in the next letter, "Gi" being what is in the entry field now, the event-proc returns the "G". I need to have to return the one being type at the time, not a lag as it does now.

Does anyone have a solution to this?

Thanks,

Kevin

  • 0

    Have you considered the entry-field  AUTOFILL property - AUTOFILL-ID & AUTOFILL-FILENAME

    SW Engineering(QA)  

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to 

    Thanks for the reply and suggestion. What I am doing is I take each event and inquire about the entries variable in order to feed a search engine in the program. It looks like autofill builds a table for suggestions, so this is not what I need. My issue is that the variable is filled in with the previously entered data only when the next character is entered, so it is always one character behind, thus not giving the wanted results. So when the user enters a G, the variable is still blank, then when they enter an I, the variable now has the G, so my search no searches for G in the table and not GI in the table of strings.

  • Verified Answer

    +1 in reply to 

    Your entry-field - are you using the NTF-CHANGED property, and the event code that executes when a NTF-CHANGE occurs? If so, try adding an inquire to the ntf-change event code. Like   Inquire control-handle value value-var,

    inquire Scr1-Ef-1, VALUE scr1-ef-1-value
    display message box scr1-ef-1-value

    This will show that, as each letter is added into the field the inquire fills the value-variable.

    SW Engineering(QA)  

    Although I am an OpenText employee, I am speaking for myself and not for OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to 

    That is it, that worked! Thank you so so much.