Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook, folders
Message
 
À
24/12/2004 16:40:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00972090
Message ID:
00972149
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform