2
Answers

Alternative for VB's Exit Sub ?

shadowhunter2k3

shadowhunter2k3

20y
3.2k
1
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)
0
shadowhunter2k3

shadowhunter2k3

NA 13 0 20y
Hi, Thanks for the feedback, I will try it ASAP... thought it would be so easy I'm now ashamed I've asked ;-) Kind regards, ShAdOwHuNtEr
0
ashug

ashug

NA 10 0 20y
you can use 'return' for come out from the function. return;