Click to See Complete Forum and Search --> : listboxes, transferring


December 16th, 1999, 04:20 PM
how can i transfer all the contents of a filelistbox to a listbox? I would like the code please. Also, could you give me the code so all the contents of a listbox can be transferred to another listbox?

Rouven Thimm
December 29th, 1999, 02:50 PM
I don't know if this will fix your problem, but I'd try something like:

Dim counter as long
List2.Clear
for counter = 0 to List1.ListCount-1 step 1 'Lists start at 0
List2.AddItem List1.List(counter)
next counter