Procedures Defined
As you create more and larger programs, you will often find yourself using the same block of code over and over in several places throughout your program (and in multiple programs). Surely, there must be a better way to handle repetitive code than to just place it in multiple locations in your program, right? Of course there is. The solution is to use procedures. Procedures are segments of code that perform a particular task and then return processing to the area of the code from which they were called. This means that a single procedure can be called from multiple places in your code and, if managed properly, can be used with multiple programs.
You have already been exposed to working with procedures even if you didn’t know ...
Get Special Edition Using Microsoft® Visual Basic® .NET 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.