Hi everyone, I'm at a brick wall with this problem involving a list box and a for-each loop. In VB.NET I could do this but it just won't work when I try the equivalent in VB6. I'm trying to use each item in a list bod named lvItems for code. I figured the best way to go around this would be to set a variable and set it to the string in the list box then use that variable in the code that would follow. Once it reaches the end it would go to the next item in the list box and use the same code with the new string. I have so far:
I realize its probably ridiculously simple but I'm eager to move on with my project so rather than keep going with trial and error I thought it would be best to ask you guys on what's right. Thanks in advance!
Code:
Dim i As Integer
For i = 0 To lvFiles.ListCount - 1
'Call the module
Next