5.2. Control Structures

The 1960s research of Bohm and Jacopini demonstrated that all programs containing GoTo statements could be written without them and that all programs could be written in terms of only three control structures[1]—the sequence structure, the selection structure and the repetition structure. The term “control structures” comes from the field of computer science. When we introduce Visual Basic’s implementation of control structures, we will refer to them as “control statements.”

[1] C. Bohm and G. Jacopini, “Flow Diagrams, Turing Machines, and Languages with Only Two Formation Rules,” Communications of the ACM, Vol. 9, No. 5, May 1966, pp. 366–371.

Sequence Structure in Visual Basic

The UML activity diagram in Fig. 5.1 illustrates ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.