Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
VB.net function? It is not working when i call it..?
http://www.dreamincode.net/forums/topic/253750-pas...
Question altered in link..
1 Answer
- AnalProgrammerLv 710 years agoFavorite Answer
The return statement returns a value to the calling module and then terminates the function.
You have a list of return statements. Only the first return will do something.
You need to find another way to do what you want.
It may be that you need multiple calls to a functions with an index to identify what you want returned or you code multiple functions.
Have fun.