Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook, ContactItem, and field names
Message
From
05/08/2006 10:33:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01143190
Message ID:
01143205
Views:
14
>Hi
>I am trying to automate Outlook to give me the field names
>used in the contacts address book. I see from the Object Browser
>that Outlook has a class called ContactItem. In the Object Browser, when
>I click on ContactITem, I can see all of the field names for the address
>book. But how do I get to these programmatically?
>
>I am automating outlook like this
>
>
>oOutlook   = CreateObject("Outlook.Application")
>oNameSpace = oOutlook.GetNameSpace("MAPI")
>oContacts  = oNameSpace.GetDefaultFolder( olContacts )
>
>
>But I can't figure out how to then get to ContactItem?
>
>Does anyone know how?
>
>Thanks Steve
#DEFINE olContactItem	2	
clear
oOutlook   = CreateObject("Outlook.Application")
oci = oOutlook.CreateItem( olContactItem )
For ix = 1 to AMembers(aoci,oci,3)
	If aOci[m.ix,2] == "PropertyPut"
		? aOci[m.ix,1]
	endif
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform