L
Laura Stern
Guest
Simon described it correctly. But the other thing is that a CATCH block handles the error for one iteration of an iterating block (e.g., a FOR EACH). So it will not cause the loop to end. It will undo that iteration and move on to the next iteration. Here's what you need if you want to get out of the first inner "for each" when an error happens. : for each ttdata ON ERROR UNDO, THROW : Loop1: for each ttdata2 on error undo, throw : catch e AS Progress.Lang.Error : leave Loop1. end catch. end. for each ttdata3 no-lock : end. end.
Continue reading...
Continue reading...