Guaranteed Hits to your web site!












Learn Visual Basic 6.0


2. The Visual Basic Language


Visual Basic Counting

  1. Counting is accomplished using the For/Next loop.

    Example
    In this example, the variable I initializes at 1 and, with each iteration of the For/Next loop, is incremented by 2 (Step). This looping continues until I becomes greater than or equal to its final value (50). If Step is not included, the default value is 1. Negative values of Step are allowed.

  2. You may exit a For/Next loop using an Exit For statement. This will transfer program control to the statement following the Next statement.


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1