Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Contacts field names
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01438135
Message ID:
01438141
Views:
45
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform