Trapping Errors in New Era of pain
Posted in 1999
Hi, I am trying to trap errors in New Era and can't. The version is 2.12 running on both NT4 and win3.11. I have tried different types of errors but it always ignores all whenever error statements. (or whenever any error) If this is a bug it is hard to believe....although with New Era the bounds of credulence are always stretched thin. Has anyone else had this problem? The code, as far as I can see is fine. Some examples would be FUNCTION X() whenever any error continue # or #whenever any error goto :ignore #defined label in this function #whenever any error call ignore_it # defined function #whenever any error stop do stuff do stuff do something that errors LABEL ignore_it: DISPLAY "This error was trapped and went to a label" END FUNCTION FUNCTION ignore_it() DISPLAY "This error was trapped" END FUNCTION If I use the LABEL I get a compilation error. (4414 - label used but not defined, which it is) If I call a defined function it doesn't call it when the error occurs. If I use continue or stop the behaviour is exactly the same as not using them. What the hell is going on? Anyone else seen this? Thanks, John