>I think it is recursion because the code referred to above is part of a function
>like this. So if would seem that if loFolder has sub-folders, then the function
>calls itself, allowing it to drill down to folders within folders. But I think
>by calling "FOR EACH loFolder IN loFolders", vfp is asking Outlook to do this work?
>>Function ReadMail( toFolder)
> ** the rest of this function
> ** handling individual emails
> ** check to see if there are more folders in this folder
> FOR EACH loFolder IN loFolders
> This.ReadMail( loFolder )
> ENDFOR
>Return
>
Oh, I see now what you mean. Yep, it looks that way.