Hello,
Is there a posibility to export the email-adresses that are now in a FW-database to outlook contacts?
Thanks
Marc
#define olContactItem 2
FUNCTION MAIN()
LOCAL oOutlook := CREATEOBJECT( "Outlook.Application" )
LOCAL oContact := oOutlook:CreateItem( olContactItem )
oContact:FullName = "This is a new contact"
oContact:Email1Address = "newcontact@newmail.it"
oContact:Save()
oOutlook:Quit()
RETURN NIL
#define olFolderContacts 10
FUNCTION MAIN()
LOCAL oOutlook := CREATEOBJECT( "Outlook.Application" )
LOCAL oNameSpace := oOutlook:GetNameSpace("MAPI")
LOCAL oContacts := oNameSpace:GetDefaultFolder( olFolderContacts )
LOCAL i
FOR i = 1 TO oContacts:Items:Count
IF oContacts:Items[ i ]:FullName = "MyContact"
? "Found!"
EXIT
ENDIF
NEXT
oOutlook:Quit()
RETURN NIL
Return to FiveWin for CA-Clipper
Users browsing this forum: No registered users and 5 guests