Exploring the Modularizing Control Structures: Subroutines and Functions

The code examples we looked at in this hour and the previous one have all been a few simple lines of code designed to illustrate the concept being discussed. In examining the execution of these code samples, we discussed how Visual Basic .NET interprets one line of code at a time, starting with the first line and working down. With control structures, however, this sequential flow of instructions can be altered, such as with loops or conditional statements.

In addition to altering the flow control with loops and conditionals, Visual Basic .NET allows for modularizing control structures. A modularizing control structure is a control structure that can be used to create a ...

Get SAMS Teach Yourself ASP.NET in 24 Hours 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.