I'm afraid I didn't explain myself very well, Mary. It's the if..then..else structure that I want to exit from under certain conditions. However, exit if is no longer supported. I was asking if there is an alternative way. I only wrap the try..catch..end try structure around it because I can exit the structure with exit try, which is supported. Is there a more elegant way to do this?
polynomial5d
----- Mary Chipman wrote: -----
Because that's not the way structured exception handling works. I take
it you're using VB.NET, in which case the older On error goto error
handling is still supported (although not recommended). If you find
the need to exit your exception handler, perhaps you need nested
exception handlers or multiple exception handlers where you're trying
to get away with using only 1? The code automatically exits after the
last statement in the catch block, and then code in the finally block
executes (if any). You might want to post some sample code to get
recommendations on how to handle the exceptions you're having problems
with.
-- Mary