>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