Example—How Data Entry Error Handler Hierarchy Works
Because this frame is called by the parent frame that defined the handlerproc procedure, the following process occurs if a user enters an erroneous value in an entry field in the child frame:
1. The another_handlerproc procedure is called and it writes the name of the error-triggering field, and the standard error message, into the log file or trace window.
2. The handlerproc procedure is called (because the another_handlerproc procedure returns EH_NEXT_HANDLER), and it does the following:
• Beeps
• Displays a pop-up message only if the data type of the error field is date
• Returns control to the child frame (because it returns EH_RESUME)