scm0sml
asked on
stoppping a procedure that has been called by another upon exception
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
any1 help?
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
any1 help?
So upon an error in Sub3... you want to exit out of the nested method set?
ASKER
yeah, to avoid, after my error message has been displayed the program continuing, without ending the program, if that makes anysense
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.