[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How to retry from within catch block

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

Laura Stern

Guest
Infinite loop protection, indeed! THANK YOU. I never think of that. I was thinking that getting kicked out of the DO WHILE after a CATCH was also wrong. I was starting to get depressed! In any case, Torben showed the right solution. And sorry - I never addressed the question of the error 14134. If you added yet another block level and lableled that as tryblock, it would compile. As I said, the associated block is already undone. I believe that is why. tryblock: do on error undo, leave: /* extra level here */ do on error undo, retry: lint = integer(lText). catch err as Progress.Lang.Error : if lText > "" then do: substring(lText, 1, 1) = "". undo tryblock, retry tryblock. end. end catch. end. END.

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