mhking04 Posted September 3, 2004 Share Posted September 3, 2004 hey, i have a method called CalculateRepayment, however when the code is done, i need it to go back to the main method. how do i do this? cheers Link to comment Share on other sites More sharing options...
0 idkfa Posted September 5, 2004 Share Posted September 5, 2004 well if you call CalculateRepayment from the main method then it it will go back to the main method. I presume your going to be returning a value from the CalculateRepayment method? In which case all you need to do when you've calculated the repayment is... return dblRepayment; ...or whatever variable is holding the repayment. This will end the CalculateRepayment method and return control to the calling method (presumably 'main'). Link to comment Share on other sites More sharing options...
Question
mhking04
hey,
i have a method called CalculateRepayment, however when the code is done, i need it to go back to the main method.
how do i do this?
cheers
Link to comment
Share on other sites
1 answer to this question
Recommended Posts