hi i am a new user to visual basic which i find very interesting but one small problem stuck out behind me using for loop
i get confused with the following code please help at(nvnrai8@gmai l.com)
private sub command1_click( )
for n=0 tolist1.listcou nt-1
if list1.selected( n) =true then
list2.additem list1.list(n)
list1.selected( n)=false
end if
next n
end sub
what does next n work here and where it goes while working and also how for loops works here.this is a program which adds list1 items to list2 box
if anyone has the solution please respond back....
i get confused with the following code please help at(nvnrai8@gmai l.com)
private sub command1_click( )
for n=0 tolist1.listcou nt-1
if list1.selected( n) =true then
list2.additem list1.list(n)
list1.selected( n)=false
end if
next n
end sub
what does next n work here and where it goes while working and also how for loops works here.this is a program which adds list1 items to list2 box
if anyone has the solution please respond back....
Comment