Fluxo de controle no 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 Visual Basic 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.
Nesta seção
Estruturas de decisão (Visual Basic)
Describes control structures used for branching.Estruturas de loop (Visual Basic)
Discusses control structures used to repeat processes.Outras estruturas de controle (Visual Basic)
Describes control structures used for resource disposal and object access.Estruturas de controle aninhado (Visual Basic)
Covers control structures inside other control structures.Como: Transferir controle para fora de uma estrutura de controle (Visual Basic)
Summarizes how to transfer directly out of a control structure.
Seções relacionadas
- Resumo do fluxo controle (Visual Basic)
Provides links to language reference pages on this subject.