Forum Post: RE: Gotchas with ROUTINE-LEVEL in ChUI procedures?

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Again - as per my reply to above post, the error-status:error change is a bug, not an undocumented side-effect. What you are saying about this code is correct. Just to be explicit, without the routine-level statement, the error occurs on "integer("abc") and is "handled" inside failproc.p. The default error handling occurs, which is to display an error and kick you out of the procedure. But then the error is over and the caller does not see any error. Therefore, the retry won't happen. However with routine-level..., the error on integer("abc") gets thrown up to the caller and so the for each block will handle it by doing a retry. So yes, of course using these directives can change things drastically.

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