AndrewMozley
Programmer
I would like to validate a single-character textbox when the user tabs onto the next field.
If the user enters a valid value (which I determine by looking up in a table) focus passes to the next control. If the value is invalid I display an error message and want focus to remain on the original field.
I can get this to happen by returning .F. from the Valid() method, but in this case the message "Invalid input" is displayed after my own error message (which I display using the Messagebox() function.
How can I suppress the "Invalid input" message, but still leave focus on the original text box?
Thanks. Andrew
If the user enters a valid value (which I determine by looking up in a table) focus passes to the next control. If the value is invalid I display an error message and want focus to remain on the original field.
I can get this to happen by returning .F. from the Valid() method, but in this case the message "Invalid input" is displayed after my own error message (which I display using the Messagebox() function.
How can I suppress the "Invalid input" message, but still leave focus on the original text box?
Thanks. Andrew