Changes

Jump to: navigation, search

Visual Basic For Loops

31 bytes added, 14:00, 19 March 2009
Creating a Visual Basic For Loop
== Creating a Visual Basic For Loop ==
<google>ADSDAQBOX_FLOW</google>
The Visual Basic ''For'' loop is ideal for situations where a task needs to be performed a specific number of times. For example, perhaps a value needs to be added to a variable 100 times. A Visual Basic ''For'' loop consists of a header, a code block and a next statement. The header contains information about how many times the loop is to be performed, the code block contains the statements to be executed on each iteration and the next statement sends the loop back to the header to repeat. The syntax of a ''For'' loop is as follows:

Navigation menu