I am converting a VB6 project to C#. I have come across some VB6 that I don't totally understand (and I don't have the ability to debug at all). It is a loop which exits immediately, before doing anything:
For Each objSubFolder In objFolder.SubFolders Exit For Next Can anyone explain that? I'm sure it does something. I'm guessing it is assigning a variable, or something. If so, does it do it only once?
Dim objSubFolder As somethingbefore the For Each? Is there aobjSubFolderused somewhere after the For Each? I don't remember much of VB6, but I was thinking that it might be a devious way to assign the first element in SubFolders to objSubFolder.