Re: Whenever error continue scope
Posted in 1993
Kristjan Gaukur Kristjansson — — source: Informix-list mailing list archive (1991-1998)
>We are having problems with the scope of the "whenever error continue" >statement. In long programs, it seems at points to "forget" that the last >"whenever error" statement was a "continue" statement. If we put in the >"whenever error continue" statement right in front of where the sql error is >occurring, this stops the program from deciding to bomb out. But we do not >want to go through ALL of our code and put a "whenever error continue" >statement at the beginning of each function. In my programs I use 'whenever error call error_func()' and it has to be put in at least once in each module you use. So it's about the first state- ment in every module in my system, (not every function). Gaukur.