2
Reply

Alternative for VB's Exit Sub ?

shadowhunter2k3

shadowhunter2k3

Feb 15 2005 5:28 AM
2.9k
Hi, The answer will probably be shorter and easier than my question but I have searched the internet for some time now and was not able to find how to accomplish what is written below. Imagine this example: private void myRoutine() if (something==false) { code to exit MyRoutine; } Similar to VB's Exit Sub Sub myRoutine() If something = false then Exit Sub End If End Sub Thanks for your help ! Kind regards, ShAdOwHuNtEr

Answers (2)