Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 2.16 KB

File metadata and controls

42 lines (36 loc) · 2.16 KB
title Control Flow in Visual Basic
ms.custom
ms.date 07/20/2015
ms.prod .net
ms.reviewer
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
helpviewer_keywords
statements [Visual Basic], control flow
control flow [Visual Basic]
control structures [Visual Basic]
structures [Visual Basic], control
conditional statements [Visual Basic], control flow
ms.assetid 5623ef47-52b1-4202-befd-9af36422ec6f
caps.latest.revision 14
author dotnet-bot
ms.author dotnetcontent

Control Flow in Visual Basic

Left unregulated, a program proceeds through its statements from beginning to end. Some very simple programs can be written with only this unidirectional flow. However, much of the power and utility of any programming language comes from the ability to change execution order with control statements and loops.

Control structures allow you to regulate the flow of your program's execution. Using control structures, you can write [!INCLUDEvbprvb] code that makes decisions or that repeats actions. Other control structures let you guarantee disposal of a resource or run a series of statements on the same object reference.

In This Section

Decision Structures
Describes control structures used for branching.

Loop Structures
Discusses control structures used to repeat processes.

Other Control Structures
Describes control structures used for resource disposal and object access.

Nested Control Structures
Covers control structures inside other control structures.

Related Sections

Control Flow Summary
Provides links to language reference pages on this subject.