Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Outlook Mail via VFP
Message
De
01/05/2000 16:51:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00364632
Message ID:
00364901
Vues:
28
Hi John,

I have code here in the Files section that does pretty much the same thing. It's called ROC (Raid on Contacts), in case anyone is to lazy to cut-and-paste code :-)


>
>
>#Define olFolderContacts	10
>oOutlook = createobject("outlook.application")
>oNameSpace = oOutlook.GetNameSpace("MAPI")
>oContacts = oNameSpace.GetDefaultFolder(olFolderContacts).Items
>count = 0
>create cursor contacts ;
>   (fullname c(50),email1address c(50))
>For Each Contact In oContacts
>   m.fullname      = contact.fullname
>   m.email1address = contact.email1address
>   Insert Into Contacts From Memvar
>Next Contact
>
>
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform