[progress Communities] [progress Openedge Abl] Forum Post: Re: 11.6.6: Error-status Behaviour

  • Thread starter Thread starter Simon L. Prinsloo
  • Start date Start date
Status
Not open for further replies.
S

Simon L. Prinsloo

Guest
When the import statement reach the end of the file, it raises the END-KEY condition, which leaves the loop. It is not an error, it is expected (and desired) behaviour that causes the loop undo and leave once all work was done on the file. Thus I do not expect an error or a message when you remove the NO-ERROR. Further more, the ERROR-STATUS handle relates to the last statement with a NO-ERROR, so if there is no NO-ERROR, referencing it make no sense and it can in fact lead to misleading results in a large program or system. The fact that ERROR-STATUS:ERROR is true in the example does seem to me like a bug, since we do not expect an error when the end of the file is reached. We expect the END-KEY condition to be raised, which should undo and leave the repeat loop. It is not an error, it is desired and expected and was designed to work that way.

Continue reading...
 
Status
Not open for further replies.
Back
Top