Dmitry Streblechenko Guest
|
Posted: Wed Jun 22, 2005 6:43 pm Post subject: Re: Outlook TypeInfo |
|
|
Access the Class property using late binding (all Outlook object expose that
property):
var vContact : OleVariant;
....
vContact := ContactFolder.Items.item(i);
if vContact.Class = 40 then begin
Contact := ContactFolder.Items.item(i) as _ContactItem;
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Gottfried Hörmandinger" <hoermandinger (AT) winfo (DOT) at> wrote
| Quote: | Hi,
i try to read the contacts of my outlook. Therefor I found a script which
works fine.
My problem is that an exception occurs if the item is a _DistListItem.
(Contact := ContactFolder.Items.item(i) as _ContactItem)
Is it possible to check the typ of the item??
Thanks for your replays
Gottfried
|
|
|