Outlook 2003 beta problem with Link.Item method

J

Joanne

I've discovered a possible bug in the Outlook 2003 beta (refresh 2)
related to using the Link.Item method to retrieve a contact item
within my VB COM addin.

Consider this snippet:

Dim oCalItem As Outlook.AppointmentItem
Dim oContactItem As Outlook.ContactItem
Dim Inspector As Outlook.Inspector
Dim oLink As Outlook.Link

Assume Inspector encapsulates an open Calendar item, and that the
Calendar item has at least 1 link associated with it:

Set oCalItem = Inspector.CurrentItem

The following line succeeds, and oLink actually references the name of
the contact I'm trying to retrieve:

Set oLink = oCalItem.Links(1)

But for some reason, the following line fails. oContactItem is never
set to the contact item that oLink is supposedly referring to in the
previous line:

Set oContactItem = oLink.Item

This method works fine in Outlook 2000 & 2002. I even took a closer
look by stepping through these lines in the debugger and oLink.Item
really is pointing to a valid contactItem. But any attempt to retrieve
that item using the Link.Item method will fail.

Does anybody know if this is a known bug in the current Beta, or is
there something else I'm missing?

Thanks,
Joanne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top