You would use a try catch block.
When you encounter an error condition, throw an error, and catch it in the
caller (or anywhere up the call stack)
"Sunny" <an*******@discussions.microsoft.com> wrote in message
news:28**********************************@microsof t.com...
Hi,
Does anyone know what is the equivalent of C# "ExitSub", as in VB.
I wanted to stop the processing of my procedure once an Error is
encountered, therefore i wanted to use ExitSub.
With Regards
Sunny