TudorSmith
Programmer
Yikes...I'm having problems!
I have a Listview (listview1) on a form. I have a command button which when clicked will loop through the ocontents of the listview, and write each line in turn to a text file.
My issue is that I enter my FOR LOOP fine, but I can't seem to make the loop jump to the next item in the ListView.
All I get is an output containing only the first item from the listview!
Here's my code
"WriteLog()" passes in my string value and outputs it to a text file. That bits fine...
If I'm oversimplifying things let me know....
Thanks
Tudor
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
I have a Listview (listview1) on a form. I have a command button which when clicked will loop through the ocontents of the listview, and write each line in turn to a text file.
My issue is that I enter my FOR LOOP fine, but I can't seem to make the loop jump to the next item in the ListView.
All I get is an output containing only the first item from the listview!
Here's my code
Code:
Dim i As Integer
For Each Item In Me.ListView1.ListItems
Debug.Print Me.ListView1.SelectedItem
For i = 1 To Me.ListView1.ListItems.Count
WriteLog App.Path & "\MISDLLLog.log", Me.ListView1.SelectedItem.SubItems(1)
Next
Next
"WriteLog()" passes in my string value and outputs it to a text file. That bits fine...
If I'm oversimplifying things let me know....
Thanks
Tudor
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))