Hi Mike,
I really did not know that my suggestion will work or won't, so I am very happy that it does work.
About forcing to enter CTRL-ENTER:
I think, you have other and better choice:
Replace the "ENTER" characters with "CTRL_ENTER" in the ControlIsExitedANdChanged event. You will need to create one or two work variable based on the same data item as your control has. Move the characters one by one extracting them with "substring" and using a running index variable, compare them and replace when it needed. You can use also the "length" function to control the length in your WHILE loop.
The best way to write a C or NER Business Function for this like "ReplaceCharInString" with four or five parameter: InputString, OutputString, CharToReplace, CharWithReplace, Occurences (optional output information).
Before you begin to do this, you have to figure out that wich is the character that entered by ENTER and by CTRL-ENTER. If you have trouble to guess it then let us know, I am sure that you will get help. Further problem could be when you want to make the replace with NER code, how to use this Character Code. Let us know also when you need further help.
Unfortunately, next week I will be at one of our clients, hope I will have some minutes to watch the Forum and reply briefly.
Good Luck and do not forget to shar your results with us.
Thanks,
Zoltán
B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)