stoppping a procedure that has been called by another upon exception
Posted on 2005-03-25
Say for instance I have 3 procedures sub1,sub2,sub3.
sub1 does some processing then calls sub2, which again does some processing and then calls sub3.
In sub3 an error or exception occurs such as invalid text is entered in a textbox etc.
rather than displaying an error message and then having to pass an exception all the way back to sub1 is not possible to stop 'processing' after the error message is displayed to allow the user to make the necassary changes?
something along the lines of Exit sub etc but obviously that would only stop the current procedure, im looking for something that will just return the user to the form in its current state