Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook, folders
Message
 
To
24/12/2004 16:40:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00972090
Message ID:
00972149
Views:
19
Marcia
I have subscribed to FoxTalk. the code snippet you sent me is not from Whil's article
but from the one you wrote, also in FoxTalk, about Outlook. It has the recursive
code for looking in all folders and sub-folders, which is the part I had
not figured out.
*** Now see if this folder has folders to process
IF toFolder.Class = 2	&&	olFolder	
   loFolders = toFolder.Folders
   FOR EACH loFolder IN loFolders
     This.ReadMail( loFolder )
   ENDFOR
ENDIF
In the same, I also see code that I think will once and for all show me how to find
out if "outLook" or "excel" have alreadby been declared and are in use.
IF TYPE( 'This.oOutlook' ) = 'O' AND NOT ISNULL( This.oOutlook )
I have 2 questions:
1. In intelligence, I can see that toFolder.Class does = 2 but is there documentation
somewhere that explains what the different values of .class mean?

2. Why is this code recursive? Or maybe it's just enough to know that it is!
FOR EACH loFolder IN loFolders
   This.ReadMail( loFolder )
ENDFOR
Thanks so much and Happy Holidays!
Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform