请问为什么先Exit For 后end if
Private Sub CmdRight_Click()Dim X As Integer
While LstLeft.SelCount > 0
For X = 0 to LstLeft.LstCount - 1
If LstLeft.Selected(X) = True Then
LstRight.AddItem LstLeft.List(X)
LstLeft.RemoveItem X
Exit For
End If
Next X
Wend
End Sub
请问为什么先Exit For 后end if
先end if 行不行