Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import outlook contacts
Message
From
14/01/2003 06:06:31
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00741270
Message ID:
00741350
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform