Info Pyn

As the process continues, the Next I statement advances I up to 3, 4, and so on. On the tenth pass through the loop, the cell in Row 10, Column 10 is assigned a value of 10.

It is interesting to watch what happens to the variable I on the last pass through Next I. In Figure 5.5, you can see that before executing Next I the tenth time, the variable I is equal to 10.

Figure 5.5

Before running Next I for the tenth time,the variable I is equal to 10.

Figure 5.5

Before running Next I for the tenth time,the variable I is equal to 10.

| (General)

End Sub

0 0

Post a comment