Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook and VFP
Message
 
 
À
10/04/2002 12:53:08
Bill Gravell
Indoor Purification System
Menifee, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00641139
Message ID:
00643333
Vues:
10
< snip >

Here's a sample code that displays the subject and sender for each email in the Inbox
oOutLookObject = CREATEOBJECT("Outlook.Application")
olNameSpace = oOutlookObject.GetNameSpace("MAPI")

oInbox = olNameSpace.GetDefaultFolder(6)

?oInbox.Items.Count

For each oItem in oInbox.Items
    ? oItem.subject
    ? oItem.SenderName
Next
There's should be VBAOUT*.chm somewhere on your HD or Office CD with Outlook object model.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform