In a visual basic 2008 console application, I need to split up some an extrmely large method into lgocial groups based upon the new logic I need to add. Thus I have the following questions:
1. If i keep the code the way it basically exists in a large method, how can I make the code go to the end of the method? Basically from my if statment certain code would happen and then I want to go to the end of the method.
2. From the place where I would do the if statement, I would break the large method into two methods. From this if statement, i would do the new code or setups the rest of the code into this new method using most of the existing logic. However when I setup this new method, how would I know what objects I need to pass to the new method?
Loading
VulpesPosted Sep 19, 2012, 10:48 AM
Anyway here's a simple example illustrating these points:
The output should be:
dcPosted Sep 19, 2012, 10:09 AM
1. If I place a 'return' statement in the code, the rest of the code in the method will not execute? The code will return to the line right after the method was called?
2. If I want to jump father down into the code, I can use a goto label? Can you give me an excample of this code I can use?
VulpesPosted Sep 18, 2012, 6:39 PM