Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook, folders
Message
De
26/12/2004 08:30:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00972090
Message ID:
00972184
Vues:
19
Hi Steve.

1. In intelliSence, I can see that toFolder.Class does = 2 but is there documentation
somewhere that explains what the different values of .class mean?


Open the Outlook object library in the Object Browser. Expand the enums node and take a look at olObjectClass. That gives you the values for all the constants.
#DEFINE olApplication  0  
#DEFINE olNamespace  1  
#DEFINE olFolder  2  
#DEFINE olRecipient  4  
#DEFINE olAttachment  5  
#DEFINE olAddressList  7  
#DEFINE olAddressEntry  8  
#DEFINE olFolders  15  
#DEFINE olItems  16  
#DEFINE olRecipients  17  
#DEFINE olAttachments  18  
#DEFINE olAddressLists  20  
#DEFINE olAddressEntries  21  
#DEFINE olAppointment  26  
#DEFINE olMeetingRequest  53  
#DEFINE olMeetingCancellation  54  
#DEFINE olMeetingResponseNegative  55  
#DEFINE olMeetingResponsePositive  56  
#DEFINE olMeetingResponseTentative  57  
#DEFINE olRecurrencePattern  28  
#DEFINE olExceptions  29  
#DEFINE olAction  32  
#DEFINE olActions  33  
#DEFINE olExplorer  34  
#DEFINE olInspector  35  
#DEFINE olPages  36  
#DEFINE olFormDescription  37  
#DEFINE olUserProperties  38  
#DEFINE olUserProperty  39  
#DEFINE olContact  40  
#DEFINE olDocument  41  
#DEFINE olJournal  42  
#DEFINE olMail  43  
#DEFINE olNote  44  
#DEFINE olPost  45  
#DEFINE olReport  46  
#DEFINE olRemote  47  
#DEFINE olTask  48  
#DEFINE olTaskRequest  49  
#DEFINE olTaskRequestUpdate  50  
#DEFINE olTaskRequestAccept  51  
#DEFINE olTaskRequestDecline  52  
#DEFINE olExplorers  60  
#DEFINE olInspectors  61  
#DEFINE olPanes  62  
#DEFINE olOutlookBarPane  63  
#DEFINE olOutlookBarStorage  64  
#DEFINE olOutlookBarGroups  65  
#DEFINE olOutlookBarShortcuts  67  
#DEFINE olDistributionList  69  
#DEFINE olPropertyPageSite  70  
#DEFINE olPropertyPages  71  
#DEFINE olSyncObject  72  
#DEFINE olSyncObjects  73  
#DEFINE olSelection  74  
#DEFINE olLink  75  
#DEFINE olLinks  76  
#DEFINE olSearch  77  
#DEFINE olResults  78  
#DEFINE olViews  79  
#DEFINE olItemProperties  98  
#DEFINE olItemProperty  99  
#DEFINE olReminders  100  
2. Why is this code recursive? Or maybe it's just enough to know that it is!

Because folders can contain either items or other folders. The ReadMail method processes folders. So when it encounters a folder, it calls itself recursively to process THAT folder.

Thanks so much and Happy Holidays!

You are welcome and the same to you!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform