Login | |
|
 |
RE: A loop in a Sub - 3/17/2008 12:55:17 AM
|
|
 |
|
| |
ebgreen
Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
|
Your code is an iteration. An iteration does exactly that, it iterates through the items in a collection. A recursion is an iteration that calls itself for some or all of the items in a collection. So in pseudo-code here is an example of folder recursion: RecurseFolder RootFolderName Sub RecurseFolder(strFolderName) Do something with the files in the folder For each sub-folder in the folder Call RecurseFolder Sub-Folder Name Next End Sub So what will happen is that this would do something to all the files in all the folders in a folder tree no matter how deep the tree goes.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|