The return statement terminates execution of the method and returns control to the calling method.
If the method is a void then the return statement can be omitted.
If the return statement is in a try-block-catch then the finally will still be executed
Assigning Function Name
Assigning the function name equal to the return value does not automatically exit the function.
This can be used inside a Function
This doesn't exit the subroutine it just defines the value to return.
Does Return exit the sub and function - YES !!!
VB.Net - Return True exits the method
You do not need to exit sub or exit function on the subsequent line
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext