Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing Outlook Address Book Groups
Message
De
17/05/2005 17:06:10
 
 
À
17/05/2005 14:31:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01015018
Message ID:
01015098
Vues:
32
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform