Chapter 5. Using Functions and Subroutines

Writing programs to solve everyday problems would be nearly impossible without the ability to divide them into small, relatively independent units. This is the ability that functions and subroutines provide.

Microsoft Visual Basic .NET provides hundreds of built-in functions. The Microsoft .NET Framework provides thousands more in the form of methods (which are functions you access as part of an object). If none of these functions serves your purpose, you can, of course, write your own. After all, that’s why people want to learn programming; they want their own custom program rather than a prepackaged, generic solution.

Introducing Functions and Subroutines

If you’ve ever written spreadsheet formulas, you’ve ...

Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.