循环语句``能不能帮我解释下呢``
option explicitprivate sub command1_click()
dim i as integer
if list1.selcount=1 then
list1.removeitem list1.listindex
elseif list1.listcount > 1 then
for i = list1.listcount - 1 to 0 step -1
if list1.selected(i) then
list1.removeitem i
end if
next i
end if
end sub
其实我主要是下面这个地方十分不理解``
for i = list1.listcount - 1 to 0 step -1
if list1.selected(i) then
list1.removeitem i
end if
next i