Vb.net(Win) For Loop While Loop Do Loop 教学
For LoopDim d As IntegerFor 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]