Section A.18. Program Structure and Flow


A.18. Program Structure and Flow

Element

Description

Call Statement

Calls an intrinsic or user-defined procedure or function, a method, or a routine in a dynamic link library.

CallByName Function

Dynamically executes a class method or property.

Continue Statement

New in 2005. Continues with the next cycle of the current loop block.

Do...Loop Statement

Repeatedly executes a block of code while or until a condition is true.

Exit Statement

Prematurely exits a code block.

End Statement

Marks the end of a block of code or an entire program.

For...Next Statement

Iterates through a section of code a given number of times.

For Each...Next Statement

Iterates through a collection or array of objects or values, returning a reference to each of the members.

GoTo Statement

Passes program flow to a portion of code marked by a label.

If...Then...Else Statement

Defines conditional blocks of code.

Operator Statement

New in 2005. Defines an overloaded operator.

Return Statement

Exits a function or procedure and returns a value from a function.

Select Case Statement

Executes one out of a series of code blocks based on the value of an expression.

Stop Statement

Suspends program execution.

Using...End Using Statement

New in 2005. Automatically releases allocated resources used within a code block.

While...End While Statement

Executes a block of code until a condition becomes False.

With...End With Statement

Enables simplified object referencing.





Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net