Manipulating Arrays

Loops often provide an efficient way to manipulate arrays. For example, the following For loop initializes all elements in the array to 5:

Static Counters (1 To 20) As Integer

Dim I As Integer

For I = 1 To 20

Counter ( I ) = 5

Next I

...