When the user of the system I’m writing enters text into a Text Editor Object but fails to terminate that entry with the ENTER key, and then clicks on a button which uses that text value in a procedure, no value is assigned to the related variable. Worse still, if a value had previously been assigned, that value remains and the user doesn’t know that her new data entry has been ineffectual.
I don’t believe that I can do anything to trap the second occurrence (which is very scary) but the only way I know to trap the first is to respond to an empty value with an error message.
I’d really like to program the missing ENTER keystroke before processing the data - is there a way to do this or to achieve the same result?