Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import outlook contacts
Message
De
14/01/2003 06:06:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00741270
Message ID:
00741350
Vues:
28
This message has been marked as the solution to the initial question of the thread.
Hi Steve.

INSERT INTO emcontact (ctname, ctaddress) ;
VALUES ;
(oOlC.Items(i).email1address,;
oOlC.Items(i).fullname)
ENDFOR


That's because the Contacts folder can contain either contacts or distribution lists. A distribution list does not have the same properties as a contact, so you need to check the class of the item before processing it like so:
*** Get info about each contact into the array
FOR EACH loContact IN loAddressBook.Items
  WITH loContact
    *** Make sure we only get individual contacts
    *** and skip any distribution lists
    IF .Class = 40   && olContact
      < your processing here >
    ENDIF
  ENDWITH
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform