look at this code,it removes any odd numbers in combobox1 when command 1 is clicked
Private Sub Command1_Click()
i = 0
While i <= Combo1.ListCount - 1
Combo1.ListIndex = i
If Combo1.List(Combo1.ListIndex) Mod 2 = 1 Then
i = -1
i = i + 1
I'm Wondering in the while condition why we have to say Combo.listcount -1 and combo1.listcount would be wrong without -1
why is that?:-?
another thing is that why we should change the value of i to -1 when
when the conditioin is true?
No One Knows What Is Like To Be The Sad Boy