Kbase P97942: Error 4123 with PROMPT-FOR statement when pressing F4 to exit program
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  31/03/2009 |
|
Status: Verified
SYMPTOM(s):
None of the widgets used in WAIT-FOR statement are SENSITIVE WAIT-FOR terminated. (4123)
Using PROMPT-FOR w/EDITING phrase
Field being used in the PROMPT-FOR has a format of '99'
User enters only one digit then presses F4 key to exit from program
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
CAUSE:
Even though logic is included which properly handles the F4 key being pressed (i.e. it hides the frame and does a RETURN from the program), the PROMPT-FOR statement is causing the 4123 error because the data entered by the user does not consist of two numbers.
FIX:
Modify the code which handles the F4 key and replace the RETURN statement with an UNDO, RETURN statement. Doing this causes the one digit which was entered into the PROMPT-FOR field to be undone which in turn will stop the 4123 error.