I have a filelistbox File1 and a listbox List1. When i run prog I selected multiple files from File1 and then hit a command button which is supposed ot list the selected files in List1. This is the code i have right now:
Dim i As Integer
For i = 0 To File1.ListCount - 1
If File1.List(i).Selected = True Then
List1.AddItem File1.List(i)
End If
Next
I am getting a runtime error that says .List is an invalid qualifier in the If...... line. Any ideas on how to rearange this line or the loop to get this to work. I have a feeling the problem is with the
If File1.List(i).Selected = True, in that the .Selected part is wrong.
Any help would be greatly appreciated.
Thanks
robbaggio
Dim i As Integer
For i = 0 To File1.ListCount - 1
If File1.List(i).Selected = True Then
List1.AddItem File1.List(i)
End If
Next
I am getting a runtime error that says .List is an invalid qualifier in the If...... line. Any ideas on how to rearange this line or the loop to get this to work. I have a feeling the problem is with the
If File1.List(i).Selected = True, in that the .Selected part is wrong.
Any help would be greatly appreciated.
Thanks
robbaggio