Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook Contacts field names
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01438135
Message ID:
01438141
Vues:
46
>I want to import my data into Outlook.
>Is there anywhere I could find the complete list of field names for the Outlook Contacts database?
>
>Many tks
>Raymond Larche

Raymond,

See also Re: Find Outlook Contacts Thread #1204673 Message #1204679
#DEFINE olFolderContacts 10
CREATE CURSOR myCursor (Name c(40),email c(50))
LOCAL oOutlook,oNameSpace,oDefaultFolder
oOutlook = CREATEOBJECT('outlook.application') 
oNameSpace = oOutlook.getnamespace('MAPI')
oDefaultFolder=oNameSpace.GetDefaultFolder(olFolderContacts) 
oItems = oDefaultFolder.items
?oItems.Count
FOR EACH oItem IN oItems
 FOR EACH oProp IN oItem.ItemProperties
    ? oProp.Name
 next   
 INSERT INTO myCursor (name,email) VALUES (oItem.fullname,oItem.email1address)
ENDFOR
SELECT myCursor 
BROWSE
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform