• 0

returning to the main method


Question

1 answer to this question

Recommended Posts

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.