在直到迭代的次數時For循環非常有用
Dim counter As Integer
For counter=
Next
這裡的
Dim counter As Integer
For counter=
Next
這一次循環執行
Dim counter As Integer
For counter=
Next
這裡的循環從
Dim counter As Integer
For counter=
If SomeFunction(counter) Then
Exit For
End If
Next
如果SomeFunction返回True
For Each循環用於循環集合或數組
For Each LoopVariable As Type In Collection
Next
[
From:http://tw.wingwit.com/Article/program/net/201311/14541.html