Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing Outlook Address Book Groups
Message
From
17/05/2005 17:06:10
 
 
To
17/05/2005 14:31:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015018
Message ID:
01015098
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>This works fine until it reaches a group list in my address book. At which point it returns and error. I can ignore the error and it will continue until it reaches the next group.
>
>1. Is there a way to import the group into a foxpro table? If so, suggestions would be appreciated.

Yes, you can step through the members of a group (actually it's a Distribution List), but I don't have all the details on that.

>2. If not, how can I determine that the address book entry is a group and ignore it?

A distribution list will have an object class of 69 (olDistributionList), so you can put this to skip over them:
IF oOLC.Items(i).Class = 69
  WAIT WINDOW "Found a Distribution List: " + oOLC.Items(i).DLName	
ELSE
  * continue with your code to store the record
ENDIF
You can use the VFP object browser pointing to the Microsoft Outlook Object Library to search out the olObjectClass enums and see other types that might show up in the Contacts folder (I errored out also on a type 43 while checking your code, which is olMail. Don't know why it's in my Contacts folder...)
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform