资讯王 发表于 2010-2-3 07:31:16

Vb.net(Win) For Loop While Loop Do Loop 教学

For LoopDim d As Integer
For d = 0 To 2
MessageBox.Show("In the For Loop")
Next d
While LoopDim d, e As Integer
d = 0
e = 6
While e > 4
e -= 1
d += 1
End While
MessageBox.Show("The Loop ran " & e & "times")
Do LoopDim str As String
Do Until str = "Cool"
MessageBox.Show("What to do?")
str = "Cool"
Loop
页: [1]
查看完整版本: Vb.net(Win) For Loop While Loop Do Loop 教学