BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Outlook TypeInfo

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Dmitry Streblechenko
Guest





PostPosted: Wed Jun 22, 2005 6:43 pm    Post subject: Re: Outlook TypeInfo Reply with quote



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




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.