-
1 Attachment(s)
Skip a part of code
1-I want to do something than if something = something than exit the function who I am.
2-I want to know what is the Exit Do in vb in C++ please
For the #1 question this is a screenshot who will show you what I want to do:
Where the arrow start I want something than will jump all the code to the end of that function.
http://forums.vb-world.net/attachmen...&postid=555882
-
1 - using the return statement will exit a function. If the function needs to return a value, you'll need to return it.
2 - the break statement will get you out of any loop.
:)
-
But remeber that there is no break nesting.
If you have two loops, you can't use break to quit the outer. Also, since switch statements use break too, you can't get out of the do...while loop from within the switch block.