Kbase P20838: Why does a loop abort if a FIND PREV or FIND NEXT fails ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  22/04/2003 |
|
Status: Unverified
GOAL:
Why does a loop abort if a FIND PREV or FIND NEXT fails ?
FIX:
This is due to the fact that the END-KEY event is raised as part of the default error handling for the FIND PREV / FIND NEXT statement. Progress will react to this as defined in the ON END-KEY phrase of the statement that started the loop. If no ON END-KEY phrase was defined, the Progress default action of UNDO, LEAVE will occur.
Since the END-KEY event is part of the error-handling, it can be avoided by executing the FIND statement with NO-ERROR. If you do, keep in mind to code your own error-handling.