dc

dc

  • NA
  • 663
  • 0

vb 2008 method

Sep 18 2012 2:29 PM
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?

Answers (3)