Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing email addresses in Outlook
Message
From
02/11/2004 10:49:23
Stan Vaninger
Mitek Industries, Inc
Missouri, United States
 
 
To
02/11/2004 06:53:52
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00956609
Message ID:
00957043
Views:
17
Marcia,

Thanks very much for your reply. The code you sent retrieves the entries in my "Contacts" list. And guess what? Your Compuserve email is one of the entries!

What I cannot figure out, however, is how to do the same for the other address list in Outlook. We have a seperate contact list called 'LMC Address Book' which has an entry for each office employee that has email. This is the oNameSpace.AddressList(2) that I referred to in my initial post.

? oNameSpace.AddressLists.Session.AddressLists.Count yields a 2

? oNameSpace.AddressLists(2).Name yields 'LMC Address Book'

? oNameSpace.AddressLists(2).AddressEntries.Count yields 82 which is the correct number of entries in the LMC Address Book

? oNameSpace.AddressLists(2).AddressEntries[1].Name yields the full name of the first person in the LMC Address Book

These same commnands with a 1 in the parenthesis gives the same information for the 'Contacts' list which is what your code gives.

What changes do I need to make to the code you sent in order to get the entries in the LMC Address Book list? I noticed that you used the GetDefaultFolder method. Would I need to use the GetFolderFromID method instead? And if so, how do I determine what parameter(s) to use?

Thanks very much for any additional help you can provide.

Stan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform