帮我解释下这个程序(VB6)
PrivateSubCommand2_Click()DimiAsIntegerFori=List1.ListCount-1To0Step-1IfList1.Selecte...
Private Sub Command2_Click()
Dim i As Integer
For i = List1.ListCount - 1 To 0 Step -1
If List1.Selected(i)Then List1.RemoveItem i
'删除选中项目
Next i
End Sub
“ For i = List1.ListCount - 1 To 0 Step -1”为什么不长会是-1 展开
Dim i As Integer
For i = List1.ListCount - 1 To 0 Step -1
If List1.Selected(i)Then List1.RemoveItem i
'删除选中项目
Next i
End Sub
“ For i = List1.ListCount - 1 To 0 Step -1”为什么不长会是-1 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询